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

Function flat

src/backend/cuda/Param.hpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47template<typename T>
48Param<T> flat(Param<T> in) {
49 in.dims[0] = in.elements();
50 in.dims[1] = 1;
51 in.dims[2] = 1;
52 in.dims[3] = 1;
53 return in;
54}
55
56template<typename T>
57class CParam {

Callers 2

topkFunction · 0.50
sortBatchedFunction · 0.50

Calls 1

elementsMethod · 0.45

Tested by

no test coverage detected