tatami_chunked
Helpers to create custom chunked tatami matrices
Loading...
Searching...
No Matches
Public Attributes | List of all members
tatami_chunked::SparseSlabFactory< Value_, Index_, Count_ >::Slab Struct Reference

Sparse slab. More...

#include <SparseSlabFactory.hpp>

Public Attributes

std::vector< Value_ * > values
 
std::vector< Index_ * > indices
 
Count_number = NULL
 

Detailed Description

template<typename Value_, typename Index_, typename Count_ = Index_>
struct tatami_chunked::SparseSlabFactory< Value_, Index_, Count_ >::Slab

Sparse slab.

Member Data Documentation

◆ values

template<typename Value_ , typename Index_ , typename Count_ = Index_>
std::vector<Value_*> tatami_chunked::SparseSlabFactory< Value_, Index_, Count_ >::Slab::values

Vector of pointers of length equal to target_dim. Each pointer corresponds to an element of the target dimension of the slab, and refers to an array with non_target_dim addressable elements. Each pointer should be used to store the values of the structural non-zeros for that dimension element.

Alternatively, this vector may be empty if needs_value = false in the SparseSlabFactory constructor.

◆ indices

template<typename Value_ , typename Index_ , typename Count_ = Index_>
std::vector<Index_*> tatami_chunked::SparseSlabFactory< Value_, Index_, Count_ >::Slab::indices

Vector of pointers of length equal to target_dim. Each pointer corresponds to an element of the target dimension of the slab, and refers to an array with non_target_dim addressable elements. Each pointer should be used to store the indices of the structural non-zeros for that dimension element.

Alternatively, this vector may be empty if needs_index = false in the SparseSlabFactory constructor.

◆ number

Pointer to an array with target_dim addressable elements. Each value stores the number of non-zero elements for each element of the target dimension of the slab, i.e., the number of entries that are filled in the corresponding arrays of values and indices. On creation, all entries of this array are set to zero.


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