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

Function identity

src/backend/cpu/identity.cpp:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24template<typename T>
25Array<T> identity(const dim4& dims) {
26 Array<T> out = createEmptyArray<T>(dims);
27
28 getQueue().enqueue(kernel::identity<T>, out);
29
30 return out;
31}
32
33#define INSTANTIATE_IDENTITY(T) \
34 template Array<T> identity<T>(const af::dim4& dims);

Callers

nothing calls this directly

Calls 2

getQueueFunction · 0.50
enqueueMethod · 0.45

Tested by

no test coverage detected