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

Method Array

src/backend/cpu/Array.cpp:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66template<typename T>
67Array<T>::Array(dim4 dims)
68 : info(getActiveDeviceId(), dims, 0, calcStrides(dims),
69 static_cast<af_dtype>(dtype_traits<T>::af_type))
70 , data(memAlloc<T>(dims.elements()).release(), memFree)
71 , data_dims(dims)
72 , node()
73 , owner(true) {}
74
75template<typename T>
76Array<T>::Array(const dim4 &dims, T *const in_data, bool is_device,

Callers

nothing calls this directly

Calls 11

getDevIdMethod · 0.80
totalMethod · 0.80
getActiveDeviceIdFunction · 0.70
calcStridesFunction · 0.50
getQueueFunction · 0.50
copyFunction · 0.50
elementsMethod · 0.45
syncMethod · 0.45
getMethod · 0.45
getDataMethod · 0.45
getDataDimsMethod · 0.45

Tested by

no test coverage detected