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

Adds Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1].

Pascal
function AddScaled(const Vec: TOpenCLMtxVec; const aScale: double; VecIndex: integer; Index: integer; Len: integer): TOpenCLMtxVec; overload;

In addition, the following formula is being used: 

result = result+ Cplx(aScale)*Vec  

An exception is raised if array borders are overrun.

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