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_ *ptr, size_t number) | |
size_t | total () const |
Index_ | get (size_t i) const |
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_ >.