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

Function moments

src/backend/oneapi/moments.cpp:25–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24template<typename T>
25Array<float> moments(const Array<T> &in, const af_moment_type moment) {
26 ONEAPI_NOT_SUPPORTED("moments Not supported");
27
28 in.eval();
29 dim4 odims, idims = in.dims();
30 dim_t moments_dim = bitCount(moment);
31
32 odims[0] = moments_dim;
33 odims[1] = 1;
34 odims[2] = idims[2];
35 odims[3] = idims[3];
36
37 Array<float> out = createValueArray<float>(odims, 0.f);
38 out.eval();
39
40 // kernel::moments<T>(out, in, moment);
41 return out;
42}
43
44#define INSTANTIATE(T) \
45 template Array<float> moments<T>(const Array<T> &in, \

Callers

nothing calls this directly

Calls 3

bitCountFunction · 0.70
evalMethod · 0.45
dimsMethod · 0.45

Tested by

no test coverage detected