tatami
C++ API for different matrix representations
|
Predict future access requests on the target dimension. More...
#include <Oracle.hpp>
Public Member Functions | |
virtual size_t | total () const =0 |
virtual Index_ | get (size_t i) const =0 |
Predict future access requests on the target dimension.
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.
Implemented in tatami::ConsecutiveOracle< Index_ >, tatami::FixedViewOracle< Index_ >, and tatami::FixedVectorOracle< Index_ >.
|
pure virtual |
i | Which prediction to return. |
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_ >.