MatrixInt::Rotate Method

Overload List

#SignatureDescription
1TMtxInt *Rotate(const int Offset, const int Index, const int Len) const;A cyclic shift on vector elements in range.
2TMtxInt *Rotate(TMtxVecInt *Src, const int Offset, const int SrcIndex, const int Index, const int Len) const;A cyclic shift on vector elements in range.

Overload 1: TMtxInt *Rotate(const int Offset, const int Index, const int Len) const;

A cyclic shift on vector elements in range.

#NameTypeDescription
1Offsetconst int
2Indexconst int
3Lenconst int
Remarks:

Performs cyclic shift on vector elements in specified range [Index..Index+Len-1]. The number of elements to shift is specified in the Offset parameter. Offset can be any integer number, positive or negative.

An exception is raised if array borders are overrun/underrun.

Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 2: TMtxInt *Rotate(TMtxVecInt *Src, const int Offset, const int SrcIndex, const int Index, const int Len) const;

A cyclic shift on vector elements in range.

#NameTypeDescription
1SrcTMtxVecInt *
2Offsetconst int
3SrcIndexconst int
4Indexconst int
5Lenconst int
Remarks:

Performs cyclic shift on source vector elements in specified range [SrcIndex .. SrcIndex+Len-1] and stores them to calling vector elements [Index .. Index+Len-1]. The number of elements to shift is specified in the Offset parameter. Offset can be any integer number, positive or negative.

An exception is raised if array borders are overrun/underrun.

See Also: MatrixInt::Shift
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler