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

Method elements

src/api/cpp/array.cpp:322–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322dim_t array::elements() const {
323 dim_t elems;
324 AF_THROW(af_get_elements(&elems, get()));
325 return elems;
326}
327
328void array::host(void *ptr) const { AF_THROW(af_get_data_ptr(ptr, get())); }
329

Callers 15

TESTFunction · 0.45
TESTFunction · 0.45
setTestDataMethod · 0.45
resizeTestFunction · 0.45
histTestFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
replaceTestFunction · 0.45
replaceScalarTestFunction · 0.45
TESTFunction · 0.45
replace.cppFile · 0.45
scanTestFunction · 0.45

Calls 2

af_get_elementsFunction · 0.85
getFunction · 0.50

Tested by 7

imageEqFunction · 0.36
readTestsFunction · 0.36
readTestsFromFileFunction · 0.36
cpu_randuFunction · 0.36
toCooVectorFunction · 0.36
elemWiseEqFunction · 0.36
assertArrayEqFunction · 0.36