Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec *ImagPart(TMtxVec *Vec); | Gets the imaginary part of a complex object. |
| 2 | TMtxVec *ImagPart(TMtxVec *Vec, int VecIndex, int Index, int Len); | Gets the imaginary part of complex object Vec elements [VecIndex]..[VecIndex+Len-1]. |
Overload 1: TMtxVec *ImagPart(TMtxVec *Vec);
Gets the imaginary part of a complex object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec * |
Remarks:
Gets the imaginary part of a complex object Vec and stores the real results in the calling object. Size and TVec::Complex properties of the calling object are set implicitly to match Vec object. Vec TVec::Complex must be true otherwise the exception will be raised.
Examples
#include "MtxVec.h"
#include "Units.MtxVec.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVec;
void Example()
{
TVec *a, *b;
CreateIt(a, b);
a->SetIt(true,DewArray<double>{1,2,3,4}); // a= [1+2i, 3+4i]
b->ImagPart(a); // b = [2, 4]
FreeIt(a,b);
}
See Also: TVec::RealPart, TVec::RealToCplx
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler
Overload 2: TMtxVec *ImagPart(TMtxVec *Vec, int VecIndex, int Index, int Len);
Gets the imaginary part of complex object Vec elements [VecIndex]..[VecIndex+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec * | |
| 2 | VecIndex | int | |
| 3 | Index | int | |
| 4 | Len | int |
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.
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler