tatami
C++ API for different matrix representations
Loading...
Searching...
No Matches
tatami::MyopicSparseWrapper< Value_, Index_, Oracle_ > Class Template Reference

User-friendly wrapper around a MyopicSparseExtractor. More...

#include <make_Wrapper.hpp>

Public Member Functions

Index_ length () const
 
SparseRange< Value_, Index_ > fetch (Index_ i)
 

Detailed Description

template<typename Value_, typename Index_, class Oracle_ = Oracle<Index_>>
class tatami::MyopicSparseWrapper< Value_, Index_, Oracle_ >

User-friendly wrapper around a MyopicSparseExtractor.

Template Parameters
Value_Numeric type of the matrix value.
Index_Integer type of the row/column indices.

Each instance of this class automatically allocates the buffer(s) to be used in MyopicSparseExtractor::fetch().

Member Function Documentation

◆ length()

template<typename Value_ , typename Index_ , class Oracle_ = Oracle<Index_>>
Index_ tatami::MyopicSparseWrapper< Value_, Index_, Oracle_ >::length ( ) const
inline
Returns
Length of the arrays in the SparseRange returned by fetch(). This is constant for a given instance of this class.

◆ fetch()

template<typename Value_ , typename Index_ , class Oracle_ = Oracle<Index_>>
SparseRange< Value_, Index_ > tatami::MyopicSparseWrapper< Value_, Index_, Oracle_ >::fetch ( Index_ i)
inline
Parameters
iIndex of the row/column of interest.
Returns
SparseRange containing the number, values and/or indices of the structural non-zeros of the i-th row/column. Pointers within this object are only guaranteed to be valid until the next call to this method.

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