tatami
C++ API for different matrix representations
Loading...
Searching...
No Matches
consecutive_extractor.hpp
Go to the documentation of this file.
1#ifndef TATAMI_CONSEUCTIVE_EXTRACTOR_HPP
2#define TATAMI_CONSEUCTIVE_EXTRACTOR_HPP
3
4#include <memory>
5#include "../base/Matrix.hpp"
6#include "new_extractor.hpp"
8
14namespace tatami {
15
34template<bool sparse_, typename Value_, typename Index_, typename ... Args_>
37 mat,
38 row,
40 std::forward<Args_>(args)...
41 );
42}
43
47// Provided for back-compatibility only.
48template<bool row_, bool sparse_, typename Value_, typename Index_, typename ... Args_>
49auto consecutive_extractor(const Matrix<Value_, Index_>* ptr, Args_&&... args) {
50 return consecutive_extractor<sparse_, Value_, Index_>(ptr, row_, std::forward<Args_>(args)...);
51}
56}
57
58#endif
Iterate across consecutive elements of the target dimension.
Predict future accesses along a consecutive sequence.
Definition ConsecutiveOracle.hpp:21
Virtual class for a matrix.
Definition Matrix.hpp:59
Flexible representations for matrix data.
Definition Extractor.hpp:15
auto consecutive_extractor(const Matrix< Value_, Index_ > *mat, bool row, Index_ iter_start, Index_ iter_length, Args_ &&... args)
Definition consecutive_extractor.hpp:35
Templated construction of a new extractor.