Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec Add(TCplx Value) | Adds complex Value to all calling object complex elements. |
| └ indexed: TMtxVec Add(TCplx Value, Int32 Index, Int32 Len) | ||
| 2 | TMtxVec Add(TMtxVec Vec) | Array addition. |
| └ indexed: TMtxVec Add(TMtxVec Vec, Int32 VecIndex, Int32 Index, Int32 Len) | ||
| 3 | TMtxVec Add(TMtxVec Vec, TCplx Value) | Adds complex Value to each element of the Vec object and store the result to the calling object. |
| └ indexed: TMtxVec Add(TMtxVec Vec, TCplx Value, Int32 VecIndex, Int32 Index, Int32 Len) | ||
| 4 | TMtxVec Add(TMtxVec Vec1, TMtxVec Vec2) | Add each of Vec2 elements to corresponding elements in Vec1. The results are stored in the calling object. |
| └ indexed: TMtxVec Add(TMtxVec Vec1, TMtxVec Vec2, Int32 Vec1Index, Int32 Vec2Index, Int32 Index, Int32 Len) | ||
| 5 | TMtxVec Add(TMtxVec X, TMtxVec Y, TCplx Z) | self = X + Y + zScalar |
| └ indexed: TMtxVec Add(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, TCplx Z, Int32 Index, Int32 Len) | ||
| 6 | TMtxVec Add(TMtxVec X, TMtxVec Y, TMtxVec Z) | self = X + Y + Z |
| └ indexed: TMtxVec Add(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, TMtxVec Z, Int32 zIndex, Int32 Index, Int32 Len) | ||
| 7 | TMtxVec Add(TMtxVec X, TMtxVec Y, Double Z) | self = X + Y + zScalar |
| └ indexed: TMtxVec Add(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, Double Z, Int32 Index, Int32 Len) | ||
| 8 | TMtxVec Add(TMtxVec Vec, Double Value) | Adds Value to the each element of the Vec object and stores the result in the calling object. |
| └ indexed: TMtxVec Add(TMtxVec Vec, Double Value, Int32 VecIndex, Int32 Index, Int32 Len) | ||
| 9 | TMtxVec Add(Double Value) | Adds Value to object elements. |
| └ indexed: TMtxVec Add(Double Value, Int32 Index, Int32 Len) |
Overload 1: TMtxVec Add(TCplx Value)
Adds complex Value to all calling object complex elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | TCplx | scalar |
Result: stored in self (calling object), returns self for chaining
Indexed: TMtxVec Add(TCplx Value, Int32 Index, Int32 Len)
Adds complex Value to calling object complex elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | TCplx | scalar |
| 2 | Index | Int32 | start index |
| 3 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun.
Overload 2: TMtxVec Add(TMtxVec Vec)
Array addition.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec | source TVec or TMtx |
Result: stored in self (calling object), returns self for chaining
Add each of Vec elements to corresponding elements in the calling object.
Matrix a = new Matrix();
a.SetIt(2, 2, false, new double[] { 1.0, 2.0, 3.0, 4.0 });
Matrix b = new Matrix();
b.SetIt(2, 2, false, new double[] { 5.0, 6.0, 7.0, 8.0 });
a.Add(b);
Matrix expected = new Matrix();
expected.SetIt(2, 2, false, new double[] { 6.0, 8.0, 10.0, 12.0 });
if (!a.IsEqual(expected, 1e-10, TCompare.cmpAbsolute))
throw new Exception("Matrix.Add: mismatch");
Indexed: TMtxVec Add(TMtxVec Vec, Int32 VecIndex, Int32 Index, Int32 Len)
Add Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec | source TVec or TMtx |
| 2 | VecIndex | Int32 | |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if Dew.Math.Matrix.ConditionCheck is true and array borders are overrun.
Overload 3: TMtxVec Add(TMtxVec Vec, TCplx Value)
Adds complex Value to each element of the Vec object and store the result to the calling object.
Result: stored in self (calling object), returns self for chaining
Size property of the calling object is set automatically. Dew.Math.Matrix.Complex property of the calling object is set to True.
Indexed: TMtxVec Add(TMtxVec Vec, TCplx Value, Int32 VecIndex, Int32 Index, Int32 Len)
Adds complex Value to each elements of the Vec object in range [VecIndex]..[VecIndex+Len-1] and stores the result to elements [Index]..[Index+Len-1] of the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec | source TVec or TMtx |
| 2 | Value | TCplx | scalar |
| 3 | VecIndex | Int32 | |
| 4 | Index | Int32 | start index |
| 5 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Size of the calling object is not changed. An exception is raised if array borders are overrun. Dew.Math.Matrix.Complex property of the calling object is set to True.
Overload 4: TMtxVec Add(TMtxVec Vec1, TMtxVec Vec2)
Add each of Vec2 elements to corresponding elements in Vec1. The results are stored in the calling object.
Result: stored in self (calling object), returns self for chaining
Size and Dew.Math.Matrix.Complex properties of the calling object are set implicitly to match Vec1 and Vec2 matrices.
Matrix a = new Matrix();
Matrix x = new Matrix();
x.SetIt(2, 2, false, new double[] { 1.0, 2.0, 3.0, 4.0 });
Matrix y = new Matrix();
y.SetIt(2, 2, false, new double[] { 5.0, 6.0, 7.0, 8.0 });
a.Add(x, y);
Matrix expected = new Matrix();
expected.SetIt(2, 2, false, new double[] { 6.0, 8.0, 10.0, 12.0 });
if (!a.IsEqual(expected, 1e-10, TCompare.cmpAbsolute))
throw new Exception("Matrix.Add: mismatch");
Indexed: TMtxVec Add(TMtxVec Vec1, TMtxVec Vec2, Int32 Vec1Index, Int32 Vec2Index, Int32 Index, Int32 Len)
Add Vec1 elements [Vec1Index]..[Vec1Index+Len-1] to Vec2 elements [Vec2Index]..[Vec2Index+Len-1] and store the results in calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec1 | TMtxVec | source TVec or TMtx |
| 2 | Vec2 | TMtxVec | source TVec or TMtx |
| 3 | Vec1Index | Int32 | |
| 4 | Vec2Index | Int32 | |
| 5 | Index | Int32 | start index |
| 6 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if Dew.Math.Matrix.ConditionCheck is true and array borders are overrun.
Overload 5: TMtxVec Add(TMtxVec X, TMtxVec Y, TCplx Z)
Compute X + Y + zScalar
Result: stored in self (calling object), returns self for chaining
Indexed: TMtxVec Add(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, TCplx Z, Int32 Index, Int32 Len)
Compute X + Y + zScalar on sub arrays
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec | source TVec or TMtx |
| 2 | XIndex | Int32 | X start index |
| 3 | Y | TMtxVec | source TVec or TMtx |
| 4 | YIndex | Int32 | Y start index |
| 5 | Z | TCplx | scalar |
| 6 | Index | Int32 | start index |
| 7 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Overload 6: TMtxVec Add(TMtxVec X, TMtxVec Y, TMtxVec Z)
Compute X + Y + Z
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec | source TVec or TMtx |
| 2 | Y | TMtxVec | source TVec or TMtx |
| 3 | Z | TMtxVec | source TVec or TMtx |
Result: stored in self (calling object), returns self for chaining
Indexed: TMtxVec Add(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, TMtxVec Z, Int32 zIndex, Int32 Index, Int32 Len)
Compute X + Y + Z on sub arrays
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec | source TVec or TMtx |
| 2 | XIndex | Int32 | X start index |
| 3 | Y | TMtxVec | source TVec or TMtx |
| 4 | YIndex | Int32 | Y start index |
| 5 | Z | TMtxVec | source TVec or TMtx |
| 6 | zIndex | Int32 | |
| 7 | Index | Int32 | start index |
| 8 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Overload 7: TMtxVec Add(TMtxVec X, TMtxVec Y, Double Z)
Compute X + Y + zScalar
Result: stored in self (calling object), returns self for chaining
Indexed: TMtxVec Add(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, Double Z, Int32 Index, Int32 Len)
Compute X + Y + zScalar on sub arrays
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec | source TVec or TMtx |
| 2 | XIndex | Int32 | X start index |
| 3 | Y | TMtxVec | source TVec or TMtx |
| 4 | YIndex | Int32 | Y start index |
| 5 | Z | Double | scalar |
| 6 | Index | Int32 | start index |
| 7 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Overload 8: TMtxVec Add(TMtxVec Vec, Double Value)
Adds Value to the each element of the Vec object and stores the result in the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec | source TVec or TMtx |
| 2 | Value | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Size and Dew.Math.Matrix.Complex properties of the calling object are set automatically.
Indexed: TMtxVec Add(TMtxVec Vec, Double Value, Int32 VecIndex, Int32 Index, Int32 Len)
Adds Value to each element of Vec object in range [VecIndex]..[VecIndex+Len-1] and stores result to elements [Index]..[Index+Len-1] of the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec | source TVec or TMtx |
| 2 | Value | Double | scalar |
| 3 | VecIndex | Int32 | |
| 4 | Index | Int32 | start index |
| 5 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Size of the calling object is not changed. An exception is raised if array borders are overrun. Dew.Math.Matrix.Complex property of the calling object is set implicitly.
Overload 9: TMtxVec Add(Double Value)
Adds Value to object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Adds Value to all calling object elements.
Indexed: TMtxVec Add(Double Value, Int32 Index, Int32 Len)
Adds Value to calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Double | scalar |
| 2 | Index | Int32 | start index |
| 3 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun.