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

Method getNode

src/backend/cpu/Array.cpp:203–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201
202template<typename T>
203Node_ptr Array<T>::getNode() {
204 if (node) { return node; }
205
206 std::shared_ptr<BufferNode<T>> out = bufferNodePtr<T>();
207 unsigned bytes = this->getDataDims().elements() * sizeof(T);
208 out->setData(data, bytes, getOffset(), dims().get(), strides().get(),
209 isLinear());
210 return out;
211}
212
213template<typename T>
214Node_ptr Array<T>::getNode() const {

Callers 11

cplxFunction · 0.45
realFunction · 0.45
imagFunction · 0.45
absFunction · 0.45
conjFunction · 0.45
unary.hppFile · 0.45
checkOpFunction · 0.45
moddimOpFunction · 0.45
operator()Method · 0.45
createNaryNodeFunction · 0.45
createBinaryNodeFunction · 0.45

Calls 6

getDataDimsMethod · 0.95
isLinearFunction · 0.85
getOffsetFunction · 0.50
elementsMethod · 0.45
setDataMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected