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

Method Array

src/backend/opencl/Array.cpp:91–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90template<typename T>
91Array<T>::Array(const dim4 &dims)
92 : info(getActiveDeviceId(), dims, 0, calcStrides(dims),
93 static_cast<af_dtype>(dtype_traits<T>::af_type))
94 , data(memAlloc<T>(info.elements()).release(), bufferFree)
95 , data_dims(dims)
96 , node()
97 , owner(true) {}
98
99template<typename T>
100Array<T>::Array(const dim4 &dims, Node_ptr n)

Callers

nothing calls this directly

Calls 13

isBufferMethod · 0.80
getDataPointerMethod · 0.80
getDevIdMethod · 0.80
totalMethod · 0.80
getActiveDeviceIdFunction · 0.70
BufferClass · 0.70
calcStridesFunction · 0.50
getQueueFunction · 0.50
dim4Class · 0.50
elementsMethod · 0.45
getMethod · 0.45
getDataMethod · 0.45

Tested by

no test coverage detected