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

Function af_get_strides

src/api/c/internal.cpp:143–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143af_err af_get_strides(dim_t *s0, dim_t *s1, dim_t *s2, dim_t *s3,
144 const af_array in) {
145 try {
146 const ArrayInfo &info = getInfo(in);
147 *s0 = info.strides()[0];
148 *s1 = info.strides()[1];
149 *s2 = info.strides()[2];
150 *s3 = info.strides()[3];
151 }
152 CATCHALL
153 return AF_SUCCESS;
154}
155
156af_err af_get_offset(dim_t *offset, const af_array arr) {
157 try {

Callers 1

getStridesFunction · 0.50

Calls 1

stridesMethod · 0.45

Tested by

no test coverage detected