TVecByte.BinaryNot Method

Overload List

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

Overload 1: TMtxVecInt BinaryNot

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
using Dew.Math;
using Dew.Math.Units;

namespace Dew.Examples
{
    void Example()
    {
        TMtxVecInt a;
        MtxVecInt.CreateIt(out a);
        try
        {
            a.SetIt(new int[] {1,0,1,0});
            a.BinaryNot(); // a = [-2,-1,-2,-1]
        }
        finally
        {
            MtxVecInt.FreeIt(ref a);
        }
    }
}

Indexed: TMtxVecInt BinaryNot(Int32 Index, Int32 Len)

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

#NameTypeDescription
1IndexInt32start index
2LenInt32element 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: TMtxVecInt BinaryNot(TMtxVecInt Src)

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: TMtxVecInt BinaryNot(TMtxVecInt Src, Int32 SrcIndex, Int32 Index, Int32 Len)

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

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt
2SrcIndexInt32source start index
3IndexInt32start index
4LenInt32element 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].