TSparseMtx::CplxToReal Method

Overload List

#SignatureDescription
1void CplxToReal(TMtxVec *ReVec, TMtxVec *ImVec);Split complex calling object in real and imaginary part.
2void CplxToReal(TMtxVec *ReVec, TMtxVec *ImVec, int ReIndex, int ImIndex, int Index, int 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.

#NameTypeDescription
1ReVecTMtxVec *
2ImVecTMtxVec *
Remarks:

Split calling object into real and imaginary components. Store all real components in ReVec and all imaginary components in ImVec. Size and TSparseMtx::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.

See Also: TSparseMtx::RealToCplx
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 2: void CplxToReal(TMtxVec *ReVec, TMtxVec *ImVec, int ReIndex, int ImIndex, int Index, int Len);

Split calling object elements [Index]..[Index+Len-1] into real and imaginary components.

#NameTypeDescription
1ReVecTMtxVec *
2ImVecTMtxVec *
3ReIndexint
4ImIndexint
5Indexint
6Lenint
Remarks:

Store real components in ReVec elements [ReIndex]..[ReIndex+Len-1] and imaginary components in ImVec elements [ImIndex]..[ImIndex+Len-1]. Size and TSparseMtx::Complex properties must be set explicitly. An exception is raised if TSparseMtx::ConditionCheck is true and array borders are overrun or underrun.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler