|
tatami
C++ API for different matrix representations
|
Predict future access requests on the target dimension. More...
#include <Oracle.hpp>

Public Member Functions | |
| virtual PredictionIndex | total () const =0 |
| virtual Index_ | get (PredictionIndex 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.
|
pure virtual |
Implemented in tatami::ConsecutiveOracle< Index_ >, tatami::FixedVectorOracle< Index_ >, and tatami::FixedViewOracle< 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::FixedVectorOracle< Index_ >, and tatami::FixedViewOracle< Index_ >.