1#ifndef TATAMI_TEST_FETCH_HPP
2#define TATAMI_TEST_FETCH_HPP
21template<
typename Value_,
typename Index_>
24 output_v.resize(raw.
number);
26 output_i.resize(raw.
number);
42template<
typename Value_,
typename Index_>
44 std::vector<Value_> output(number);
45 auto raw = ext.
fetch(i, output.data());
59template<
typename Value_,
typename Index_>
61 std::vector<Value_> output(number);
62 auto raw = ext.
fetch(output.data());
72template<
typename Value_,
typename Index_>
104template<
typename Value_,
typename Index_>
121template<
typename Value_,
typename Index_>
Utilities for testing tatami libraries.
Definition create_indexed_subset.hpp:16
std::vector< Value_ > fetch(tatami::MyopicDenseExtractor< Value_, Index_ > &ext, Index_ i, std::size_t number)
Definition fetch.hpp:43
Value_ * copy_n(const Value_ *const input, const Size_ n, Value_ *const output)
Sparse vector.
Definition fetch.hpp:73
std::vector< Index_ > index
Definition fetch.hpp:91
std::vector< Value_ > value
Definition fetch.hpp:85