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

Function getDims

src/api/cpp/array.cpp:106–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106dim4 getDims(const af_array arr) {
107 dim_t d0, d1, d2, d3;
108 AF_THROW(af_get_dims(&d0, &d1, &d2, &d3, arr));
109 return dim4(d0, d1, d2, d3);
110}
111
112af_array initEmptyArray(af::dtype ty, dim_t d0, dim_t d1 = 1, dim_t d2 = 1,
113 dim_t d3 = 1) {

Callers 2

dimsMethod · 0.85
array.cppFile · 0.85

Calls 2

af_get_dimsFunction · 0.50
dim4Class · 0.50

Tested by

no test coverage detected