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

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

Pascal
function DivAndAdd(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 Z also for the Y parameter: 

(X / Z) * xyScale + Z * zScale

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