MatrixInt::BitShift Method

Overload List

#SignatureDescription
1TMtxVecInt *BitShift(const int Bits) const;Apply binary shift by number of Bits to the left (positive) or right (negative) for all elements in the calling object.
2TMtxVecInt *BitShift(const int Bits, const int Index, const int Len) const;Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in the calling object.
3TMtxVecInt *BitShift(TMtxVecInt *Src, const int Bits, const int SrcIndex, const int Index, const int Len) const;Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in Src.
4TMtxVecInt *BitShift(TMtxVecInt *Src, const int Bits) const;Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in Src.

Overload 1: TMtxVecInt *BitShift(const int Bits) const;

Apply binary shift by number of Bits to the left (positive) or right (negative) for all elements in the calling object.

#NameTypeDescription
1Bitsconst int

Returns: the result of binary shift to the left or right by number of Bits applied to values in the calling object and stored back in the calling object. The sign of the numbers is preserved when doing right shift.

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

Overload 2: TMtxVecInt *BitShift(const int Bits, const int Index, const int Len) const;

Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in the calling object.

#NameTypeDescription
1Bitsconst int
2Indexconst int
3Lenconst int

Returns: the result of binary shift to the left or right by number of Bits applied to values [Index]..[Index+Len-1] in the calling object and stored back in the calling object. The sign of the numbers is preserved when doing right shift.

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

Overload 3: TMtxVecInt *BitShift(TMtxVecInt *Src, const int Bits, const int SrcIndex, const int Index, const int Len) const;

Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in Src.

#NameTypeDescription
1SrcTMtxVecInt *
2Bitsconst int
3SrcIndexconst int
4Indexconst int
5Lenconst int

Returns: the result of binary shift to the left or right by number of Bits applied to Src values [SrcIndex]..[SrcIndex+Len-1] and stored in the calling object (Self) value [Index]..[Index+Len-1]. The sign of the numbers is preserved when doing right shift.

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

Overload 4: TMtxVecInt *BitShift(TMtxVecInt *Src, const int Bits) const;

Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in Src.

#NameTypeDescription
1SrcTMtxVecInt *
2Bitsconst int

Returns: the result of binary shift to the left or right by number of Bits applied to Src values and stored in the calling object (Self). The sign of the numbers is preserved when doing right shift.

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