TMtxVec ImagPart(TMtxVec Vec)
Gets the imaginary part of a complex object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec | source TVec or TMtx |
Result: stored in self (calling object), returns self for chaining
Remarks:
Gets the imaginary part of a complex object Vec and stores the real results in the calling object. Size and Dew.Math.TMtxVec.Complex properties of the calling object are set implicitly to match Vec object. Vec Dew.Math.TMtxVec.Complex must be true otherwise the exception will be raised.
Examples
Matrix a;
Matrix b;
a.SetIt(1,2,true,new double[] {1,2,3,4}); // a= [1+2i, 3+4i]
b.ImagPart(a); // b = new double[] {2, 4}
Indexed: TMtxVec ImagPart(TMtxVec Vec, Int32 VecIndex, Int32 Index, Int32 Len)
Gets the imaginary part of complex object Vec elements [VecIndex]..[VecIndex+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
Remarks:
Stores the result in calling object. An exception is raised if the calling object is complex, if Vec is not complex or if array borders are overrun/underrun.