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

Add each of Vec elements to corresponding elements in the calling object.

Pascal
function AddScaled(const Vec: TOpenCLMtxVec; const aScale: double): TOpenCLMtxVec; overload;

In addition, the following formula is being used: 

result = result+ aScale*Vec  

The results are stored in the calling object. Size and TOpenCLBase.ComplexComplexproperties of the calling object are set implicitly to match the Vec object.

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