get_compressed_matrix_representation: Get compressed matrix representation

Description Usage Arguments Value Examples

View source: R/matrix_functions.R

Description

Get compressed matrix representation

Usage

1
get_compressed_matrix_representation(A, row_or_column_storage)

Arguments

A

a matrix

row_or_column_storage

"row" or "column", indicating whether to store A in compressed row or compressed column format.

Value

a list containing components p (pointer into the indexes and data), i (the indexes), x (the data), dim (the dimension of the matrix), row_or_column_storage ("row" or "column", depending on storage type), zero_idx (boolean indicating whether the vectors p and i are 0-index-based).

Examples

1
2

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