You are here: Symbol Reference > MtxExpr Namespace > Classes > Vector Record > public > RealToCplx Method > Vector.RealToCplx Method (TMtxVec, TMtxVec, integer, integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
Vector.RealToCplx Method (TMtxVec, TMtxVec, integer, integer, integer, integer)

Construct a complex object from the ReVec elements [ReIndex]..[ReIndex+Len-1] (real part) and the ImVec elements [ImIndex]..[ImIndex+Len-1] (imaginary part).

Pascal
function RealToCplx(const ReVec: TMtxVec; const ImVec: TMtxVec; ReIndex: integer; ImIndex: integer; Index: integer; Len: integer): TMtxVec; overload;

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.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!