tatami_test
Utilities for testing tatami libraries
Loading...
Searching...
No Matches
Public Attributes | List of all members
tatami_test::SparseVector< Value_, Index_ > Struct Template Reference

Sparse vector. More...

#include <fetch.hpp>

Public Attributes

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

Detailed Description

template<typename Value_, typename Index_>
struct tatami_test::SparseVector< Value_, Index_ >

Sparse vector.

Template Parameters
Value_Type of the data.
Index_Integer type for the row/column index.

Member Data Documentation

◆ index

template<typename Value_ , typename Index_ >
std::vector<Index_> tatami_test::SparseVector< Value_, Index_ >::index

Row/column indices of the non-zero elements. This should have length equal to that of SparseVector::value, and entries should be sorted.

◆ value

template<typename Value_ , typename Index_ >
std::vector<Value_> tatami_test::SparseVector< Value_, Index_ >::value

Values of the non-zero elements.


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