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
25template<typename Value_, typename Size_>
26Value_* copy_n(const Value_* input, Size_ n, Value_* output) {
27 if (input != output) {
28 std::copy_n(input, n, output);
29 }
30 return output;
31}
32
33}
34
35#endif
Flexible representations for matrix data.
Definition Extractor.hpp:15
Value_ * copy_n(const Value_ *input, Size_ n, Value_ *output)
Definition copy.hpp:26