Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec *ExtendToComplex(bool Zeros = true); | Extends a real object to a complex object. |
| 2 | TMtxVec *ExtendToComplex(TMtxVec *Src, bool Zeros); | Extend Vec object to complex calling object. |
| 3 | TMtxVec *ExtendToComplex(TMtxVec *Src, bool Zeros, int SrcIndex, int DstIndex, int Len); | Converts the source to complex. |
Overload 1: TMtxVec *ExtendToComplex(bool Zeros = true);
Extends a real object to a complex object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Zeros = true | bool |
Extend the calling object to complex vector. After the calling of ExtendToComplex the imaginary part becomes the same as real part if Zeros is false. If Zeros is true the imaginary part is set to zero. The use of the in-place version of the method is discouraged because it requires 3*N copy operations, while the not-in-place version requires only 2*N copy operations.
Overload 2: TMtxVec *ExtendToComplex(TMtxVec *Src, bool Zeros);
Extend Vec object to complex calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec * | |
| 2 | Zeros | bool |
If Zeros is true then the calling vector imaginary part is set to zero, otherwise the calling object imaginary part is the same as calling object real part.
Overload 3: TMtxVec *ExtendToComplex(TMtxVec *Src, bool Zeros, int SrcIndex, int DstIndex, int Len);
Converts the source to complex.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec * | |
| 2 | Zeros | bool | |
| 3 | SrcIndex | int | |
| 4 | DstIndex | int | |
| 5 | Len | int |
Converts the source to complex by setting the imaginary part to either zero (zeros = True) or same as real (zeros = false). Does not set size of the calling vector. If there is not sufficient space available to store the result an exception will be raised.