Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVecInt *AddScaledSqr(TMtxVecInt *X, TMtxVecInt *Y, const int yScale); | Compute sqr(X + Y*yScale) |
| 2 | TMtxVecInt *AddScaledSqr(TMtxVecInt *X, int XIndex, TMtxVecInt *Y, int YIndex, const int yScale, int Index, int Len); | Compute sqr(X + Y*yScale) on sub arrays |
| 3 | TMtxVecInt *AddScaledSqr(TMtxVecInt *X, const int xScale, TMtxVecInt *Y, const int yScale); | Compute sqr(X*xScale + Y*yScale) |
| 4 | TMtxVecInt *AddScaledSqr(TMtxVecInt *X, int XIndex, const int xScale, TMtxVecInt *Y, int YIndex, const int yScale, int Index, int Len); | Compute sqr(X*xScale + Y*yScale) on sub arrays |
Overload 1: TMtxVecInt *AddScaledSqr(TMtxVecInt *X, TMtxVecInt *Y, const int yScale);
Compute sqr(X + Y*yScale)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt * | |
| 2 | Y | TMtxVecInt * | |
| 3 | yScale | const int |
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::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler
Overload 2: TMtxVecInt *AddScaledSqr(TMtxVecInt *X, int XIndex, TMtxVecInt *Y, int YIndex, const int yScale, int Index, int Len);
Compute sqr(X + Y*yScale) on sub arrays
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt * | |
| 2 | XIndex | int | |
| 3 | Y | TMtxVecInt * | |
| 4 | YIndex | int | |
| 5 | yScale | const int | |
| 6 | Index | int | |
| 7 | Len | int |
Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler
Overload 3: TMtxVecInt *AddScaledSqr(TMtxVecInt *X, const int xScale, TMtxVecInt *Y, const int yScale);
Compute sqr(X*xScale + Y*yScale)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt * | |
| 2 | xScale | const int | |
| 3 | Y | TMtxVecInt * | |
| 4 | yScale | const int |
Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler
Overload 4: TMtxVecInt *AddScaledSqr(TMtxVecInt *X, int XIndex, const int xScale, TMtxVecInt *Y, int YIndex, const int yScale, int Index, int Len);
Compute sqr(X*xScale + Y*yScale) on sub arrays
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt * | |
| 2 | XIndex | int | |
| 3 | xScale | const int | |
| 4 | Y | TMtxVecInt * | |
| 5 | YIndex | int | |
| 6 | yScale | const int | |
| 7 | Index | int | |
| 8 | Len | int |
Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler