You are here: Symbol Reference > AbstractMtxVec Namespace > Classes > TDenseMtxVec Class > public > AddScaled Method > TDenseMtxVec.AddScaled Method (TMtxVec, TCplx, integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TDenseMtxVec.AddScaled Method (TMtxVec, TCplx, integer, integer, integer)

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

Pascal
function AddScaled(const Vec: TMtxVec; const aScale: TCplx; VecIndex: integer; Index: integer; Len: integer): TMtxVec; overload;

In addition, the following formula is being used: 

result = result + aScale*Vec . 

An exception is raised if TMtxVecBase.ConditionCheckConditionCheckis true and array borders are overrun.

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