You are here: Symbol Reference > clMtxExpr Namespace > Classes > clVector Record > public > RealToCplx Method > clVector.RealToCplx Method (TOpenCLMtxVec, TOpenCLMtxVec, integer, integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
clVector.RealToCplx Method (TOpenCLMtxVec, TOpenCLMtxVec, 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(ReVec: TOpenCLMtxVec; ImVec: TOpenCLMtxVec; ReIndex: integer; ImIndex: integer; Index: integer; Len: integer): TOpenCLMtxVec; 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 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!