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

Function toStride

src/backend/common/ArrayInfo.cpp:213–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213dim4 toStride(const vector<af_seq> &seqs, const af::dim4 &parentDims) {
214 dim4 out(calcStrides(parentDims));
215 for (unsigned i = 0; i < seqs.size(); i++) {
216 if (seqs[i].step != 0) { out[i] *= seqs[i].step; }
217 }
218 return out;
219}
220
221namespace arrayfire {
222namespace common {

Callers 8

createSubArrayFunction · 0.85
assignFunction · 0.85
createSubArrayFunction · 0.85
assignFunction · 0.85
createSubArrayFunction · 0.85
assignFunction · 0.85
createSubArrayFunction · 0.85
assignFunction · 0.85

Calls 1

calcStridesFunction · 0.70

Tested by

no test coverage detected