You are here: Symbol Reference > clMtxVec Namespace > Classes > TOpenCLMtxVec Class > public > SetVal Method > TOpenCLMtxVec.SetVal Method (double)
MtxVec VCL
ContentsIndex
PreviousUpNext
TOpenCLMtxVec.SetVal Method (double)

Initialize elements to Value.

Pascal
function SetVal(const Value: double): TOpenCLMtxVec; overload;

Set all calling object elements to Value. If the calling object is complex then the real part is set to Value and the imaginary is set to zero.

var a: TOpenCLVector; begin CreateIt(a); a.Size(4,clFloat,False); a.SetVal(1); // a = [1,1,1,1] FreeIt(a); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!