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

Function af_get_dims

src/api/c/array.cpp:365–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365af_err af_get_dims(dim_t *d0, dim_t *d1, dim_t *d2, dim_t *d3,
366 const af_array in) {
367 try {
368 // Do not check for device mismatch
369 const ArrayInfo &info = getInfo(in, false);
370 *d0 = info.dims()[0];
371 *d1 = info.dims()[1];
372 *d2 = info.dims()[2];
373 *d3 = info.dims()[3];
374 }
375 CATCHALL
376 return AF_SUCCESS;
377}
378
379af_err af_get_numdims(unsigned *nd, const af_array in) {
380 try {

Callers 15

iterDeconvImageTestFunction · 0.50
homographyTestFunction · 0.50
invDeconvImageTestFunction · 0.50
glohTestFunction · 0.50
meanvar_test_functionMethod · 0.50
siftTestFunction · 0.50
cannyImageOtsuTestFunction · 0.50
diff2TestFunction · 0.50
diff1TestFunction · 0.50
reduce_by_key_testFunction · 0.50
setTestDataMethod · 0.50
conv_imageFunction · 0.50

Calls 1

dimsMethod · 0.45

Tested by 2

conv_imageFunction · 0.40
toTempFormatFunction · 0.40