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

Function verifyDims

src/api/c/handle.cpp:132–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132dim4 verifyDims(const unsigned ndims, const dim_t *const dims) {
133 DIM_ASSERT(1, ndims >= 1);
134
135 dim4 d(1, 1, 1, 1);
136
137 for (unsigned i = 0; i < ndims; i++) {
138 d[i] = dims[i];
139 DIM_ASSERT(2, dims[i] >= 1);
140 }
141
142 return d;
143}
144
145template<typename T>
146void releaseHandle(const af_array arr) {

Callers 12

af_random_uniformFunction · 0.85
af_random_normalFunction · 0.85
af_randuFunction · 0.85
af_randnFunction · 0.85
af_constantFunction · 0.85
af_constant_complexFunction · 0.85
af_constant_longFunction · 0.85
af_constant_ulongFunction · 0.85
af_identityFunction · 0.85
af_rangeFunction · 0.85
af_iotaFunction · 0.85
af_create_arrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected