You are here: Symbol Reference > clMtxExpr Namespace > Classes > clVector Record > public > Scale Method > clVector.Scale Method (double)
MtxVec VCL
ContentsIndex
PreviousUpNext
clVector.Scale Method (double)

Multiply object elements with Value.

Pascal
function Scale(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: clVector; begin v.CopyFromArray(TSingleArray.Create(2,3,5)); // v = [2,3,5] v.Scale(3); // v = [6,9,15] end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!