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

Compute (X*xScale + Y*yScale)*Z*zScale

Pascal
function AddAndMul(const X: TMtxVec; xScale: Double; const Y: TMtxVec; yScale: Double; const Z: TMtxVec; zScale: Double): TMtxVec; overload;

The following is also possible at the same or higher speed: 

X^2 * xScale + XY * yScale 

by passing X also for the Z parameter.

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