TAbstractMtxVecInt.BinaryNot Method

Overload List

#SignatureDescription
1function BinaryNot(): TMtxVecInt; overload;Applies binary "not" operation to elements stored in the object.
└ indexed: function BinaryNot(Index, Len: integer): TMtxVecInt; overload;
2function BinaryNot(const Src: TMtxVecInt): TMtxVecInt; overload;Apply binary "not" to Src elements and store the result in Self (this).
└ indexed: function BinaryNot(const Src: TMtxVecInt; SrcIndex, Index, Len: integer): TMtxVecInt; overload;

Overload 1: function BinaryNot(): TMtxVecInt; overload;

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

Result: stored in self (calling object), returns self for chaining

Remarks:

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

Examples
Uses MtxVecInt;

procedure Example;
var a: TMtxVecInt;
    c: double;
begin
    a := [1,0,1,0];
    a.BinaryNot; // a = [-2,-1,-2,-1]
    FreeIt(a);
end;

Indexed: function BinaryNot(Index, Len: integer): TMtxVecInt; overload;

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

#NameTypeDescription
1Indexintegerstart index
2Lenintegerelement count

Result: stored in self (calling object), returns self for chaining

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

Overload 2: function BinaryNot(const Src: TMtxVecInt): TMtxVecInt; overload;

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

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt

Result: stored in self (calling object), returns self for chaining

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

Indexed: function BinaryNot(const Src: TMtxVecInt; SrcIndex, Index, Len: integer): TMtxVecInt; overload;

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

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt
2SrcIndexintegersource start index
3Indexintegerstart index
4Lenintegerelement count

Result: stored in self (calling object), returns self for chaining

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