1#ifndef TATAMI_FIXED_ORACLE_HPP
2#define TATAMI_FIXED_ORACLE_HPP
9#include "sanisizer/sanisizer.hpp"
24template<
typename Index_>
33 sanisizer::can_cast<std::size_t>(number);
41 return my_reference[i];
45 const Index_* my_reference;
54template<
typename Index_>
61 sanisizer::can_cast<PredictionIndex>(my_sequence.size());
65 return my_sequence.size();
69 return my_sequence[i];
73 std::vector<Index_> my_sequence;
Predict future accesses from a vector containing a fixed sequence.
Definition FixedOracle.hpp:55
PredictionIndex total() const
Definition FixedOracle.hpp:64
Index_ get(PredictionIndex i) const
Definition FixedOracle.hpp:68
FixedVectorOracle(std::vector< Index_ > vector)
Definition FixedOracle.hpp:60
Predict future accesses from a view on a fixed sequence.
Definition FixedOracle.hpp:25
PredictionIndex total() const
Definition FixedOracle.hpp:36
Index_ get(PredictionIndex i) const
Definition FixedOracle.hpp:40
FixedViewOracle(const Index_ *ptr, PredictionIndex number)
Definition FixedOracle.hpp:32
Predict future access requests on the target dimension.
Definition Oracle.hpp:29
Flexible representations for matrix data.
Definition Extractor.hpp:15
std::size_t PredictionIndex
Definition Oracle.hpp:18