Class ov::CoordinateTransform

class CoordinateTransform : protected ov::CoordinateTransformBasic

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

Deprecated:

Public Functions

size_t index(const Coordinate &c) const

The tensor element index calculation by given coordinate.

Parameters

c – tensor element coordinate

bool has_source_coordinate(const Coordinate &c) const

Checks that coordinate belongs to given coordinates subset.

Parameters

c – tensor element coordinate

Coordinate to_source_coordinate(const Coordinate &c) const

Convert a target-space coordinate to a source-space coordinate.

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.