Class ov::CoordinateTransformBasic

class CoordinateTransformBasic

Class which allows to calculate item index with given coordinates in tensor and helps to iterate over all coordinates. Tensor items should be placed in memory in row-major order.

Subclassed by ov::CoordinateTransform

Public Functions

size_t index(const Coordinate &c) const

The tensor element index calculation by given coordinate.

Deprecated:

Parameters

c – tensor element coordinate

CoordinateIterator begin() const noexcept

Returns an iterator to the first coordinate of the tensor.

const CoordinateIterator &end() const noexcept

Returns an iterator to the coordinate following the last element of the tensor.