extract_vector_from_compressed_matrix: Extract vector from compressed matrix

Description Usage Arguments Value

View source: R/matrix_functions.R

Description

A function to extract a vector(s) from a matrix stored in compressed column or row format

Usage

1
2
3
4
5
6
7
8
9
extract_vector_from_compressed_matrix(
  vector_nos,
  x,
  i,
  p,
  vector_length,
  zero_based_idx = TRUE,
  vector_subset = NULL
)

Arguments

vector_nos

indexes of the vectors to extract

x

sparse-matrix data

i

sparse-matrix indexes

p

sparse-matrix pointers

vector_length

length of the vectors to extract

zero_based_idx

(boolean; default TRUE) do i and p use zero-based indexing?

vector_subset

(optional) integers indicating a subset of the vectors to return

Value

the extracted vectors


Timothy-Barry/ravel documentation built on Oct. 16, 2020, 12:40 a.m.