Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void CplxToReal(TMtxVec *ReVec, TMtxVec *ImVec) const; | Split complex calling object in real and imaginary part. |
| 2 | void CplxToReal(TMtxVec *ReVec, TMtxVec *ImVec, int ReIndex, int ImIndex, int Index, int Len) const; | Split calling object elements [Index]..[Index+Len-1] into real and imaginary components. |
Overload 1: void CplxToReal(TMtxVec *ReVec, TMtxVec *ImVec) const;
Split complex calling object in real and imaginary part.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ReVec | TMtxVec * | |
| 2 | ImVec | TMtxVec * |
Remarks:
Split calling object into real and imaginary components. Store all real components in ReVec and all imaginary components in ImVec. Size and Matrix::Complex properties of ReVec and ImVec are set implicitly to match with the calling Matrix. An execption is raised if calling object is not complex.
Examples
#include "MtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
Matrix a, b, c;
a.SetIt(1, 2, true, DewArray<double>{1, -2, 3, 4});
a.CplxToReal(b, c);
}
See Also: Matrix::RealToCplx
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler
Overload 2: void CplxToReal(TMtxVec *ReVec, TMtxVec *ImVec, int ReIndex, int ImIndex, int Index, int Len) const;
Split calling object elements [Index]..[Index+Len-1] into real and imaginary components.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ReVec | TMtxVec * | |
| 2 | ImVec | TMtxVec * | |
| 3 | ReIndex | int | |
| 4 | ImIndex | int | |
| 5 | Index | int | |
| 6 | Len | int |
Remarks:
Store real components in ReVec elements [ReIndex]..[ReIndex+Len-1] and imaginary components in ImVec elements [ImIndex]..[ImIndex+Len-1]. Size and Matrix::Complex properties must be set explicitly. An exception is raised if Matrix::ConditionCheck is true and array borders are overrun or underrun.
Examples
#include "MtxExpr.h"
#include "Units.Math387.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::Math387;
void Example()
{
Matrix a, b, c;
a = {{Cplx(1, -2), Cplx(3, 4)}};
a.CplxToReal(b, c);
}
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler