tatami
C++ API for different matrix representations
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tatami::Oracle< Index_ > Class Template Referenceabstract

Predict future access requests on the target dimension. More...

#include <Oracle.hpp>

Inheritance diagram for tatami::Oracle< Index_ >:
Inheritance graph
[legend]

Public Member Functions

virtual size_t total () const =0
 
virtual Index_ get (size_t i) const =0
 

Detailed Description

template<typename Index_>
class tatami::Oracle< Index_ >

Predict future access requests on the target dimension.

Template Parameters
Index_Integer type of the row/column indices.

This allows Matrix implementations to pre-fetch data for future requests to OracularDenseExtractor::fetch() or OracularSparseExtractor::fetch(). Check out ConsecutiveOracle and FixedVectorOracle for some examples of concrete subclasses.

Member Function Documentation

◆ total()

template<typename Index_ >
virtual size_t tatami::Oracle< Index_ >::total ( ) const
pure virtual

◆ get()

template<typename Index_ >
virtual Index_ tatami::Oracle< Index_ >::get ( size_t  i) const
pure virtual
Parameters
iWhich prediction to return.
Returns
The i-th prediction, to be interpreted as an index on the target dimension.

Implemented in tatami::ConsecutiveOracle< Index_ >, tatami::FixedViewOracle< Index_ >, and tatami::FixedVectorOracle< Index_ >.


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