Summary
Split complex calling object in real and imaginary part.
Class
TMtxVec
Declaration
Procedure CplxToReal(ReVec, ImVec: TMtxVec; ReIndex, ImIndex, Index, Len: integer);
Description
Split calling object elements [Index]..[Index+Len-1] into real and imaginary components. Store real components in ReVec elements [ReIndex]..[ReIndex+Len-1] and imaginary components in ImVec elements [ImIndex]..[ImIndex+Len-1]. Size and
Complex properties must be set explicitly. An exception is raised if
ConditionCheck is true and array borders are overrun or underrun.
Declaration
Procedure CplxToReal(ReVec, ImVec: TMtxVec);
Description
Split calling object into real and imaginary components. Store all real components in ReVec and all imaginary components in ImVec. Size and
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.
Example 1
var a,b,c: TVec;
begin
CreateIt(a,b,c);
try
a.SetIt(True,[1,-2,3,4]);
a.CplxToReal(b,c);
finally
FreeIt(a,b,c);
end;
end;
| Copyright 2008 Dew Research |
http://www.dewresearch.com