VectorInt.LogicalNot Method

Overload List

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

Overload 1: function LogicalNot: TMtxVecInt;

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

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

Remarks:

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

Examples
Uses MtxVecInt;

procedure Example;
var a: TVecInt;
c: double;
begin
    CreateIt(a);
    a.SetIt([1,0,1,0]);
    a.LogicalNot; // a = [0,1,0,1]
    FreeIt(a);
end;

Indexed: function LogicalNot(Index: Integer; Len: Integer): TMtxVecInt;

Apply logical "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 logical "not" of values stored in Self (this).

Overload 2: function LogicalNot(const Src: TMtxVecInt): TMtxVecInt;

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

#NameTypeDescription
1SrcTMtxVecInt

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

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

Indexed: function LogicalNot(const Src: TMtxVecInt; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

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

#NameTypeDescription
1SrcTMtxVecInt
2SrcIndexIntegersource start index
3IndexIntegerstart index
4LenIntegerelement count

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

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