MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / moment_copy

Function moment_copy

src/api/c/moments.cpp:64–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63template<typename T>
64static inline void moment_copy(double* out, const af_array moments) {
65 const auto& info = getInfo(moments);
66 vector<T> h_moments(info.elements());
67 copyData(h_moments.data(), moments);
68
69 // convert to double
70 copy(begin(h_moments), end(h_moments), out);
71}
72
73af_err af_moments_all(double* out, const af_array in,
74 const af_moment_type moment) {

Callers

nothing calls this directly

Calls 5

beginFunction · 0.85
endFunction · 0.85
copyDataFunction · 0.70
copyFunction · 0.50
elementsMethod · 0.45

Tested by

no test coverage detected