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

Method getNode

src/backend/cuda/Array.cpp:240–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238
239template<typename T>
240Node_ptr Array<T>::getNode() {
241 if (node) { return node; }
242
243 Param<T> kinfo = *this;
244 unsigned bytes = this->dims().elements() * sizeof(T);
245 auto nn = bufferNodePtr<T>();
246 nn->setData(kinfo, data, bytes, isLinear());
247
248 return nn;
249}
250
251template<typename T>
252Node_ptr Array<T>::getNode() const {

Callers 10

realFunction · 0.45
imagFunction · 0.45
absFunction · 0.45
conjFunction · 0.45
joinFunction · 0.45
shiftFunction · 0.45
evalMultipleFunction · 0.45
createSelectNodeFunction · 0.45
copyArrayFunction · 0.45
operator()Method · 0.45

Calls 4

isLinearFunction · 0.85
elementsMethod · 0.45
dimsMethod · 0.45
setDataMethod · 0.45

Tested by

no test coverage detected