TVecInt::SqrAddScaled Method

Overload List

#SignatureDescription
1TMtxVecInt *SqrAddScaled(TMtxVecInt *X, TMtxVecInt *Y, const int yScale);Compute sqr(X) + sqr(Y)*yScale
2TMtxVecInt *SqrAddScaled(TMtxVecInt *X, int XIndex, TMtxVecInt *Y, int YIndex, const int yScale, int Index, int Len);Compute sqr(X) + sqr(Y)*yScale on sub arrays
3TMtxVecInt *SqrAddScaled(TMtxVecInt *X, const int xScale, TMtxVecInt *Y, const int yScale);Compute sqr(X)*xScale + sqr(Y)*yScale
4TMtxVecInt *SqrAddScaled(TMtxVecInt *X, int XIndex, const int xScale, TMtxVecInt *Y, int YIndex, const int yScale, int Index, int Len);Compute sqr(X)*xScale + sqr(Y)*yScale on sub arrays

Overload 1: TMtxVecInt *SqrAddScaled(TMtxVecInt *X, TMtxVecInt *Y, const int yScale);

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

#NameTypeDescription
1XTMtxVecInt *
2YTMtxVecInt *
3yScaleconst int
Remarks:

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

X^2 - Y^2

Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler

Overload 2: TMtxVecInt *SqrAddScaled(TMtxVecInt *X, int XIndex, TMtxVecInt *Y, int YIndex, const int yScale, int Index, int Len);

Compute sqr(X) + sqr(Y)*yScale on sub arrays

#NameTypeDescription
1XTMtxVecInt *
2XIndexint
3YTMtxVecInt *
4YIndexint
5yScaleconst int
6Indexint
7Lenint
Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler

Overload 3: TMtxVecInt *SqrAddScaled(TMtxVecInt *X, const int xScale, TMtxVecInt *Y, const int yScale);

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

#NameTypeDescription
1XTMtxVecInt *
2xScaleconst int
3YTMtxVecInt *
4yScaleconst int
Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler

Overload 4: TMtxVecInt *SqrAddScaled(TMtxVecInt *X, int XIndex, const int xScale, TMtxVecInt *Y, int YIndex, const int yScale, int Index, int Len);

Compute sqr(X)*xScale + sqr(Y)*yScale on sub arrays

#NameTypeDescription
1XTMtxVecInt *
2XIndexint
3xScaleconst int
4YTMtxVecInt *
5YIndexint
6yScaleconst int
7Indexint
8Lenint
Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler