Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
322
dim_t array::elements() const {
323
dim_t elems;
324
AF_THROW(af_get_elements(&elems, get()));
325
return elems;
326
}
327
328
void array::host(void *ptr) const { AF_THROW(af_get_data_ptr(ptr, get())); }
329
Callers
15
TEST
Function · 0.45
TEST
Function · 0.45
setTestData
Method · 0.45
resizeTest
Function · 0.45
histTest
Function · 0.45
TEST
Function · 0.45
TEST
Function · 0.45
replaceTest
Function · 0.45
replaceScalarTest
Function · 0.45
TEST
Function · 0.45
replace.cpp
File · 0.45
scanTest
Function · 0.45
Calls
2
af_get_elements
Function · 0.85
get
Function · 0.50
Tested by
7
imageEq
Function · 0.36
readTests
Function · 0.36
readTestsFromFile
Function · 0.36
cpu_randu
Function · 0.36
toCooVector
Function · 0.36
elemWiseEq
Function · 0.36
assertArrayEq
Function · 0.36