You are here: Symbol Reference > clMtxExpr Namespace > Classes > clMatrix Record > public > ExtendToComplex Method > clMatrix.ExtendToComplex Method (TOpenCLMtxVec, Boolean)
MtxVec VCL
ContentsIndex
PreviousUpNext
clMatrix.ExtendToComplex Method (TOpenCLMtxVec, Boolean)

Extend Vec object to complex calling object.

Pascal
function ExtendToComplex(const Src: TOpenCLMtxVec; Zeros: Boolean): TOpenCLMtxVec; overload;

If Zeros is true then the calling vector imaginary part is set to zero, otherwise the calling object imaginary part is the same as calling object real part.

var a,b: clMatrix; begin a.CopyFromArray(2,2, TSingleArray.Create(1,2,3,4)); b.ExtendToComplex(a,True); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!