tatami_test
Utilities for testing tatami libraries
|
Result of simulate_compressed_sparse()
.
More...
#include <simulate_compressed_sparse.hpp>
Public Attributes | |
std::vector< Value_ > | data |
std::vector< Index_ > | index |
std::vector< size_t > | indptr |
Result of simulate_compressed_sparse()
.
Value_ | Type of simulated value. |
Index_ | Integer type for the index. |
std::vector<Value_> tatami_test::SimulateCompressedSparseResult< Value_, Index_ >::data |
Vector of values of the non-zero elements. Each entry corresponds to an entry of SimulateCompressedSparseResult::index
.
std::vector<Index_> tatami_test::SimulateCompressedSparseResult< Value_, Index_ >::index |
Vector of indices of the non-zero elements. Indices refer the location of the non-zero element on the secondary dimension. Non-zero elements in the same primary dimension element are stored contiguously, ordered by increasing index.
std::vector<size_t> tatami_test::SimulateCompressedSparseResult< Value_, Index_ >::indptr |
Vector of length equal to the extent of the primary dimension plus 1. This contains positions on index
that define the start and end of each primary dimension element. Specifically, the stretch of entries in index
from [indptr[i], indptr[i+1])
contains non-zero elements for the primary dimension element i
.