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

Method resetInfo

src/backend/common/ArrayInfo.hpp:95–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 af_backend getBackendId() const;
94
95 void resetInfo(const af::dim4& dims) {
96 dim_size = dims;
97 dim_strides = calcStrides(dims);
98 offset = 0;
99 }
100
101 void resetDims(const af::dim4& dims) { dim_size = dims; }
102

Callers

nothing calls this directly

Calls 1

calcStridesFunction · 0.70

Tested by

no test coverage detected