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

Method modDims

src/backend/common/ArrayInfo.cpp:103–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101void ArrayInfo::modStrides(const dim4 &newStrides) { dim_strides = newStrides; }
102
103void ArrayInfo::modDims(const dim4 &newDims) {
104 dim_size = newDims;
105 modStrides(calcStrides(newDims));
106}
107
108bool ArrayInfo::isEmpty() const { return (elements() == 0); }
109

Callers 1

copyModdimsFunction · 0.45

Calls 1

calcStridesFunction · 0.70

Tested by

no test coverage detected