tatami
C++ API for different matrix representations
Loading...
Searching...
No Matches
Public Attributes | List of all members
tatami::FragmentedSparseContents< Value_, Index_ > Struct Template Reference

Fragmented sparse contents. More...

#include <convert_to_fragmented_sparse.hpp>

Public Attributes

std::vector< std::vector< Value_ > > value
 
std::vector< std::vector< Index_ > > index
 

Detailed Description

template<typename Value_, typename Index_>
struct tatami::FragmentedSparseContents< Value_, Index_ >

Fragmented sparse contents.

Template Parameters
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.)

Member Data Documentation

◆ value

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.

◆ index

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.


The documentation for this struct was generated from the following file: