MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / operator[]

Function operator[]

extensions/include/cuMat/src/Iterator.h:150–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 /// Array subscript
149 template <typename Distance>
150 __device__ __forceinline__ value_type operator[](Distance n) const
151 {
152 Index3 coords = fromLinear(index_+n, dims_, stride_);
153 return mat_.coeff(coords.get<0>(), coords.get<1>(), coords.get<2>(), -1);
154 }
155
156 /// Equal to
157 __host__ __device__ __forceinline__ bool operator==(const self_type& rhs)

Callers

nothing calls this directly

Calls 2

fromLinearFunction · 0.85
coeffMethod · 0.45

Tested by

no test coverage detected