VectorInt::BinaryNot Method

Overload List

#SignatureDescription
1TMtxVecInt *BinaryNot() const;Applies binary "not" operation to elements stored in the object.
2TMtxVecInt *BinaryNot(const int Index, const int Len) const;Apply binary "not" to elements stored in Self (this).
3TMtxVecInt *BinaryNot(TMtxVecInt *Src) const;Apply binary "not" to Src elements and store the result in Self (this).
4TMtxVecInt *BinaryNot(TMtxVecInt *Src, const int SrcIndex, const int Index, const int Len) const;Apply binary "not" to Src elements and store the result in Self (this).

Overload 1: TMtxVecInt *BinaryNot() const;

Applies binary "not" operation to elements stored in the object.

Remarks:

Calculate the binary "not" value of all calling object elemets in-place.

Examples
#include "MtxVecInt.h"
#include "Units.MtxVecInt.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVecInt;

void Example()
{
    TVecInt* a;
    CreateIt(a);
    a->SetIt(DewArray<int>{1,0,1,0});
    a->BinaryNot(); // // a = [-2,-1,-2,-1]
    FreeIt(a);
}
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

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

Apply binary "not" to elements stored in Self (this).

#NameTypeDescription
1Indexconst int
2Lenconst int

Returns: the result of binary "not" of values stored in Self (this).

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

Overload 3: TMtxVecInt *BinaryNot(TMtxVecInt *Src) const;

Apply binary "not" to Src elements and store the result in Self (this).

#NameTypeDescription
1SrcTMtxVecInt *

Returns: the result of binary "not" of Src values stored in Self (this).

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

Overload 4: TMtxVecInt *BinaryNot(TMtxVecInt *Src, const int SrcIndex, const int Index, const int Len) const;

Apply binary "not" to Src elements and store the result in Self (this).

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

Returns: the result of binary "not" of Src values [SrcIndex]..[SrcIndex+Len-1] stored in Self (this) values [Index]..[Index+Len-1].

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