Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVecInt LogicalNot | Applies logical "not" operation to elements stored in the object. |
| └ indexed: TMtxVecInt LogicalNot(Int32 Index, Int32 Len) | ||
| 2 | TMtxVecInt LogicalNot(TMtxVecInt Src) | Apply logical "not" to Src elements and store the result in Self (this). |
| └ indexed: TMtxVecInt LogicalNot(TMtxVecInt Src, Int32 SrcIndex, Int32 Index, Int32 Len) |
Overload 1: TMtxVecInt LogicalNot
Applies logical "not" operation to elements stored in the object.
Result: stored in self (calling object), returns self for chaining
Calculate the logical "not" value of all calling object elements in-place.
using Dew.Math;
using Dew.Math.Units;
namespace Dew.Examples
{
void Example()
{
TVecInt a;
MtxVecInt.CreateIt(out a);
try
{
a.SetIt(new int[] {1,0,1,0});
a.LogicalNot(); // a = [0,1,0,1]
}
finally
{
MtxVec.FreeIt(ref a);
}
}
}
Indexed: TMtxVecInt LogicalNot(Int32 Index, Int32 Len)
Apply logical "not" to elements stored in Self (this).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Int32 | start index |
| 2 | Len | Int32 | element 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: TMtxVecInt LogicalNot(TMtxVecInt Src)
Apply logical "not" to Src elements and store the result in Self (this).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
Result: stored in self (calling object), returns self for chaining
Returns: the result of logical "not" of Src values stored in Self (this).
Indexed: TMtxVecInt LogicalNot(TMtxVecInt Src, Int32 SrcIndex, Int32 Index, Int32 Len)
Apply logical "not" to Src elements and store the result in Self (this).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | SrcIndex | Int32 | source start index |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | element 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].