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

Compressed sparse contents. More...

#include <convert_to_compressed_sparse.hpp>

Public Attributes

std::vector< Value_value
 
std::vector< Index_index
 
std::vector< Pointer_pointers
 

Detailed Description

template<typename Value_, typename Index_, typename Pointer_ = size_t>
struct tatami::CompressedSparseContents< Value_, Index_, Pointer_ >

Compressed sparse contents.

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

Member Data Documentation

◆ value

Vector containing values of the structural non-zero elements in a compressed sparse format.

◆ index

Vector containing the secondary dimension indices of the structural non-zero elements in a compressed sparse format.

◆ pointers

Vector containing the pointers for each primary dimension element in a compressed sparse format.


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