|
tatami
C++ API for different matrix representations
|
Predict future accesses from a view on a fixed sequence. More...
#include <FixedOracle.hpp>


Public Member Functions | |
| FixedViewOracle (const Index_ *const ptr, const PredictionIndex number) | |
| PredictionIndex | total () const |
| Index_ | get (PredictionIndex i) const |
Public Member Functions inherited from tatami::Oracle< Index_ > | |
Predict future accesses from a view on a fixed sequence.
| Index_ | Integer type of the row/column indices. |
|
inline |
| ptr | Pointer to a constant array of indices on the target dimension. The underlying array should be valid for the lifetime of this FixedViewOracle instance. |
| number | Length of the array at ptr. |
|
inlinevirtual |
Implements tatami::Oracle< Index_ >.
|
inlinevirtual |
| i | Which prediction to return. |
i-th prediction, to be interpreted as an index on the target dimension. Implements tatami::Oracle< Index_ >.