Vector::AddScaledSqr Method

Overload List

#SignatureDescription
1TMtxVec *AddScaledSqr(TMtxVec *X, TMtxVec *Y, const double yScale) const;Compute sqr(X + Y*yScale)
2TMtxVec *AddScaledSqr(TMtxVec *X, TMtxVec *Y, const TCplx &yScale) const;Compute sqr(X + Y*yScale)
3TMtxVec *AddScaledSqr(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, const double yScale, int Index, int Len) const;Compute sqr(X + Y*yScale) on sub arrays
4TMtxVec *AddScaledSqr(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, const TCplx &yScale, int Index, int Len) const;Compute sqr(X + Y*yScale) on sub arrays
5TMtxVec *AddScaledSqr(TMtxVec *X, const double xScale, TMtxVec *Y, const double yScale) const;Compute sqr(X*xScale + Y*yScale)
6TMtxVec *AddScaledSqr(TMtxVec *X, const TCplx &xScale, TMtxVec *Y, const TCplx &yScale) const;Compute sqr(X*xScale + Y*yScale)
7TMtxVec *AddScaledSqr(TMtxVec *X, int XIndex, const double xScale, TMtxVec *Y, int YIndex, const double yScale, int Index, int Len) const;Compute sqr(X*xScale + Y*yScale) on sub arrays
8TMtxVec *AddScaledSqr(TMtxVec *X, int XIndex, const TCplx &xScale, TMtxVec *Y, int YIndex, const TCplx &yScale, int Index, int Len) const;Compute sqr(X*xScale + Y*yScale) on sub arrays

Overload 1: TMtxVec *AddScaledSqr(TMtxVec *X, TMtxVec *Y, const double yScale) const;

Compute sqr(X + Y*yScale)

#NameTypeDescription
1XTMtxVec *
2YTMtxVec *
3yScaleconst double
Remarks:

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

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: TMtxVec *AddScaledSqr(TMtxVec *X, TMtxVec *Y, const TCplx &yScale) const;

Compute sqr(X + Y*yScale)

#NameTypeDescription
1XTMtxVec *
2YTMtxVec *
3yScaleconst TCplx &
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 3: TMtxVec *AddScaledSqr(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, const double yScale, int Index, int Len) const;

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

#NameTypeDescription
1XTMtxVec *
2XIndexint
3YTMtxVec *
4YIndexint
5yScaleconst double
6Indexint
7Lenint
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 4: TMtxVec *AddScaledSqr(TMtxVec *X, int XIndex, TMtxVec *Y, int YIndex, const TCplx &yScale, int Index, int Len) const;

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

#NameTypeDescription
1XTMtxVec *
2XIndexint
3YTMtxVec *
4YIndexint
5yScaleconst TCplx &
6Indexint
7Lenint
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 5: TMtxVec *AddScaledSqr(TMtxVec *X, const double xScale, TMtxVec *Y, const double yScale) const;

Compute sqr(X*xScale + Y*yScale)

#NameTypeDescription
1XTMtxVec *
2xScaleconst double
3YTMtxVec *
4yScaleconst double
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 6: TMtxVec *AddScaledSqr(TMtxVec *X, const TCplx &xScale, TMtxVec *Y, const TCplx &yScale) const;

Compute sqr(X*xScale + Y*yScale)

#NameTypeDescription
1XTMtxVec *
2xScaleconst TCplx &
3YTMtxVec *
4yScaleconst TCplx &
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 7: TMtxVec *AddScaledSqr(TMtxVec *X, int XIndex, const double xScale, TMtxVec *Y, int YIndex, const double yScale, int Index, int Len) const;

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

#NameTypeDescription
1XTMtxVec *
2XIndexint
3xScaleconst double
4YTMtxVec *
5YIndexint
6yScaleconst double
7Indexint
8Lenint
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 8: TMtxVec *AddScaledSqr(TMtxVec *X, int XIndex, const TCplx &xScale, TMtxVec *Y, int YIndex, const TCplx &yScale, int Index, int Len) const;

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

#NameTypeDescription
1XTMtxVec *
2XIndexint
3xScaleconst TCplx &
4YTMtxVec *
5YIndexint
6yScaleconst TCplx &
7Indexint
8Lenint
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler