Summary
Constructs a complex object from two real objects.
Class
TMtxVec
Declaration
Function RealToCplx(ReVec, ImVec: TMtxVec; ReIndex, ImIndex, Index, Len: integer): TMtxVec;
Description
Construct a complex object from the ReVec elements [ReIndex]..[ReIndex+Len-1] (real part) and the ImVec elements [ImIndex]..[ImIndex+Len-1] (imaginary part). The results are stored to calling object elements [Index]..[Index+Len-1]. Size and
Complex properties of the calling object must be set explicitly. An exception is raised if
ConditionCheck is True and array borders are overrun. An exception is also raised if ReVec or ImVec
Complex property is True.
Declaration
Function RealToCplx(ReVec, ImVec: TMtxVec): TMtxVec;
Description
Construct a complex object from the ReVec (real part) and the ImVec (imaginary part) objects. The results are stored in the calling object. Size and
Complex properties of the calling object are set implicitly to match ReVec and ImVec objects. An exception is raised if ReVec or ImVec
Complex property is True.
Example 1
var a,b,c: TVec;
begin
CreateIt(a,b,c);
try
a.SetIt(True,[1,2,3,4]);
b.SetIt(True,[2,2,3,4]);
c.RealToCplx(a,b);
finally
FreeIt(a,b,c);
end;
end;
| Copyright 2008 Dew Research |
http://www.dewresearch.com