tatami
C++ API for different matrix representations
|
Compressed sparse contents. More...
#include <convert_to_compressed_sparse.hpp>
Public Attributes | |
std::vector< Value_ > | value |
std::vector< Index_ > | index |
std::vector< Pointer_ > | pointers |
Compressed sparse contents.
Value_ | Type of value in the matrix. |
Index_ | Type of row/column index. |
Pointer_ | Integer type for the row/column pointers. |
The "primary" dimension is the one that is used to create the pointers for the compressed sparse format, while the other dimension is defined as the "secondary" dimension. For example, the rows would be the primary dimension in a compressed sparse row matrix.
std::vector<Value_> tatami::CompressedSparseContents< Value_, Index_, Pointer_ >::value |
Vector containing values of the structural non-zero elements in a compressed sparse format.
std::vector<Index_> tatami::CompressedSparseContents< Value_, Index_, Pointer_ >::index |
Vector containing the secondary dimension indices of the structural non-zero elements in a compressed sparse format.
std::vector<Pointer_> tatami::CompressedSparseContents< Value_, Index_, Pointer_ >::pointers |
Vector containing the pointers for each primary dimension element in a compressed sparse format.