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