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

Multiply object elements with Value.

Pascal
function Scale(const Factor: double): TOpenCLMtxVec; overload;

Multiply all calling object elements with Value in-place. This method is the same as the Mul method overloads multiplying with vector elements with a scalar.

var v: TOpenCLVector; begin v:= TOpenCLVector.Create; try v.CopyFromArray(TSingleArray.Create(2,3,5)); // v = [2,3,5] v.Scale(3); // v = [6,9,15] finally v.Free; end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!