1#ifndef TATAMI_TEST_FETCH_HPP
2#define TATAMI_TEST_FETCH_HPP
22template<
typename Value_,
typename Index_>
25 output_v.resize(raw.
number);
27 output_i.resize(raw.
number);
45template<
typename Value_,
typename Index_>
47 std::vector<Value_> output(number);
48 auto raw = ext.
fetch(i, output.data());
62template<
typename Value_,
typename Index_>
64 std::vector<Value_> output(number);
65 auto raw = ext.
fetch(output.data());
75template<
typename Value_,
typename Index_>
107template<
typename Value_,
typename Index_>
111 internal::trim_sparse(raw, output.
value, output.
index);
124template<
typename Value_,
typename Index_>
128 internal::trim_sparse(raw, output.
value, output.
index);
Utilities for testing tatami libraries.
Definition create_indexed_subset.hpp:15
std::vector< Value_ > fetch(tatami::MyopicDenseExtractor< Value_, Index_ > &ext, Index_ i, size_t number)
Definition fetch.hpp:46
Value_ * copy_n(const Value_ *input, Size_ n, Value_ *output)
Sparse vector.
Definition fetch.hpp:76
std::vector< Index_ > index
Definition fetch.hpp:94
std::vector< Value_ > value
Definition fetch.hpp:88