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

Compute sqr(X) + sqr(Y)*yScale

Pascal
function SqrAddScaled(const X: TMtxVec; const Y: TMtxVec; const yScale: Double): TMtxVec; overload;

By making use of yScale, it is also possible to compute the following (at the same or higher speed): 

X^2 - Y^2

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