Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void CplxToReal(TMtxVec ReVec, TMtxVec ImVec) | Split complex calling object in real and imaginary part. |
| 2 | void CplxToReal(TMtxVec ReVec, TMtxVec ImVec, Int32 ReIndex, Int32 ImIndex, Int32 Index, Int32 Len) | Split calling object elements [Index]..[Index+Len-1] into real and imaginary components. |
Overload 1: void CplxToReal(TMtxVec ReVec, TMtxVec ImVec)
Split complex calling object in real and imaginary part.
Result: stored in self (calling object)
Split calling object into real and imaginary components. Store all real components in ReVec and all imaginary components in ImVec. Size and Dew.Math.Vector.Complex properties of ReVec and ImVec are set implicitly to match with the calling vector. An execption is raised if calling object is not complex.
Vector a;
Vector b;
Vector c;
a.SetIt(true,new double[] {1,-2,3,4});
a.CplxToReal(b,c);
Overload 2: void CplxToReal(TMtxVec ReVec, TMtxVec ImVec, Int32 ReIndex, Int32 ImIndex, Int32 Index, Int32 Len)
Split calling object elements [Index]..[Index+Len-1] into real and imaginary components.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ReVec | TMtxVec | source TVec or TMtx |
| 2 | ImVec | TMtxVec | source TVec or TMtx |
| 3 | ReIndex | Int32 | |
| 4 | ImIndex | Int32 | |
| 5 | Index | Int32 | start index |
| 6 | Len | Int32 | element count |
Result: stored in self (calling object)
Store real components in ReVec elements [ReIndex]..[ReIndex+Len-1] and imaginary components in ImVec elements [ImIndex]..[ImIndex+Len-1]. Size and Dew.Math.Vector.Complex properties must be set explicitly. An exception is raised if Dew.Math.Vector.ConditionCheck is true and array borders are overrun or underrun.