You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > AddScaled Method > Matrix.AddScaled Method (TMtxVec, double, double)
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.AddScaled Method (TMtxVec, double, double)

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

Pascal
function AddScaled(const Vec: TMtxVec; RScale: double; IScale: double): TMtxVec; overload;

In addition, the following formula is begin used: 

 

result = result+ Cplx(RScale,IScale)*Vec .

 

When default values for parameters are being used the "normal" addition is being performed. The results are stored in the calling object. Size and Complex properties of the calling object are set implicitly to match the Vec object.

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