Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
47
template<typename T>
48
Param<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
56
template<typename T>
57
class CParam {
Callers
2
topk
Function · 0.50
sortBatched
Function · 0.50
Calls
1
elements
Method · 0.45
Tested by
no test coverage detected