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

Compute (X*Y)*xyScale + Z*zScale

Pascal
function MulAndAdd(const X: TMtxVec; const Y: TMtxVec; xyScale: Double; const Z: TMtxVec; zScale: Double): TMtxVec; overload;

The following expression would also run at the same or higher speed, when passing X also for the Y parameter: 

X^2*xyScale + Z*zScale

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