tatami
C++ API for different matrix representations
Loading...
Searching...
No Matches
copy.hpp
Go to the documentation of this file.
1#ifndef TATAMI_COPY_HPP
2#define TATAMI_COPY_HPP
3
4#include <algorithm>
5
11namespace tatami {
12
24template<typename Value_, typename Size_>
26 if (input != output) {
27 std::copy_n(input, n, output);
28 }
29 return output;
30}
31
32}
33
34#endif
Flexible representations for matrix data.
Definition Extractor.hpp:15
Value_ * copy_n(const Value_ *input, Size_ n, Value_ *output)
Definition copy.hpp:25
auto consecutive_extractor(const Matrix< Value_, Index_ > *mat, bool row, Index_ iter_start, Index_ iter_length, Args_ &&... args)
Definition consecutive_extractor.hpp:35