You are here: Symbol Reference > clMtxVec Namespace > Classes > TOpenCLMtxVec Class > public > RealToCplx Method > TOpenCLMtxVec.RealToCplx Method (TOpenCLMtxVec, TOpenCLMtxVec, integer, integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TOpenCLMtxVec.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(const ReVec: TOpenCLMtxVec; const 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 TOpenCLBase.ComplexComplexproperties 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 TOpenCLBase.ComplexComplexproperty is True.

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