Description Usage Arguments Value Examples
View source: R/matrix_functions.R
Get compressed matrix representation
1 | get_compressed_matrix_representation(A, row_or_column_storage)
|
A |
a matrix |
row_or_column_storage |
"row" or "column", indicating whether to store A in compressed row or compressed column format. |
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).
1 2 | A <- create_example_sparse_matrix(10, 5)
get_compressed_matrix_representation(A, "column")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.