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

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
 

Detailed Description

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

Result of simulate_compressed_sparse().

Template Parameters
Value_Type of simulated value.
Index_Integer type for the index.

Member Data Documentation

◆ data

template<typename Value_ , typename 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.

◆ index

template<typename Value_ , typename 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.

◆ indptr

template<typename Value_ , typename 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.


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