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

Compute sqr(X + Y*yScale)

Pascal
function AddScaledSqr(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 - Y)^2 = X^2 - 2XY +Y^2

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