Dew MtxVec NET
TMtxVec.RealPart Methods
Summary
Gets real part of complex object values.

Class
TMtxVec

Declaration
Function RealPart(Vec: TMtxVec; VecIndex, Index, Len: integer): TMtxVec;

Description
Gets the real part of a Vec object complex elements [VecIndex]..[VecIndex+Len-1] and stores the results in calling object real elements [Index]..[Index+Len-1]. An exception is raised if array borders are overrun or underrun or if Vec object Complex propety is false.
Declaration
Function RealPart(Vec: TMtxVec): TMtxVec;

Description
The method method gets the real part of a complex object Vec and stores the real results in the calling object. Size and Complex properties of the calling object are set implicitly to match Vec object. Vec Complex property must be true otherwise an exception is raised.
 See Also 
ImagPart 

Example 1

var a,b: TVec; begin CreateIt(a,b); try a.SetIt(True,[1,2,3,4]); // = [1+2i, 3+4i] b.RealPart(a); // b = [1,3] finally FreeIt(a,b); end; end;

Copyright 2008 Dew Research
http://www.dewresearch.com