tatami
C++ API for different matrix representations
|
Fragmented sparse contents. More...
#include <convert_to_fragmented_sparse.hpp>
Public Attributes | |
std::vector< std::vector< Value_ > > | value |
std::vector< std::vector< Index_ > > | index |
Fragmented sparse contents.
Value_ | Type of value in the matrix. |
Index_ | Type of row/column index. |
The "primary" dimension is the one that is used to organize non-zero elements into vectors, while the other dimension is defined as the "secondary" dimension. For example, the rows would be the primary dimension in a fragmented sparse row matrix. (Check out FragmentedSparseMatrix
for more details.)
std::vector<std::vector<Value_> > tatami::FragmentedSparseContents< Value_, Index_ >::value |
Vector of vectors containing the values of the structural non-zero elements. Each inner vector corresponds to an element of the primary dimension and contains all values for that element.
std::vector<std::vector<Index_> > tatami::FragmentedSparseContents< Value_, Index_ >::index |
Vector of vectors containing the secondary dimension indices of the structural non-zero elements. Each inner vector corresponds to an element of the primary dimension and contains all indices for that element. Each inner vector is of length equal to the corresponding entry of values
and is guaranteed to be strictly increasing.