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

Method Array

src/backend/cuda/Array.cpp:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76template<typename T>
77Array<T>::Array(const af::dim4 &dims)
78 : info(getActiveDeviceId(), dims, 0, calcStrides(dims),
79 static_cast<af_dtype>(dtype_traits<T>::af_type))
80 , data((dims.elements() ? memAlloc<T>(dims.elements()).release() : nullptr),
81 memFree)
82 , data_dims(dims)
83 , node()
84 , owner(true) {}
85
86template<typename T>
87Array<T>::Array(const af::dim4 &dims, const T *const in_data, bool is_device,

Callers

nothing calls this directly

Calls 12

getActiveStreamFunction · 0.85
getDevIdMethod · 0.80
isBufferMethod · 0.80
getDataPointerMethod · 0.80
totalMethod · 0.80
getActiveDeviceIdFunction · 0.70
calcStridesFunction · 0.50
dim4Class · 0.50
elementsMethod · 0.45
getMethod · 0.45
getDataMethod · 0.45
getDataDimsMethod · 0.45

Tested by

no test coverage detected