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

Method bytes

src/api/cpp/array.cpp:341–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339unsigned array::numdims() const { return numDims(get()); }
340
341size_t array::bytes() const {
342 dim_t nElements;
343 AF_THROW(af_get_elements(&nElements, get()));
344 return nElements * getSizeOf(type());
345}
346
347size_t array::allocated() const {
348 size_t result = 0;

Callers 6

TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
SetUpMethod · 0.80
setupInputsFunction · 0.80

Calls 3

af_get_elementsFunction · 0.85
getSizeOfFunction · 0.85
getFunction · 0.50

Tested by

no test coverage detected