Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVecInt AddScaledSqr(TMtxVecInt X, TMtxVecInt Y, Int32 yScale) | self = sqr(X + Y*yScale) |
| └ indexed: TMtxVecInt AddScaledSqr(TMtxVecInt X, Int32 XIndex, TMtxVecInt Y, Int32 YIndex, Int32 yScale, Int32 Index, Int32 Len) | ||
| 2 | TMtxVecInt AddScaledSqr(TMtxVecInt X, Int32 xScale, TMtxVecInt Y, Int32 yScale) | self = sqr(X*xScale + Y*yScale) |
| 3 | TMtxVecInt AddScaledSqr(TMtxVecInt X, Int32 XIndex, Int32 xScale, TMtxVecInt Y, Int32 YIndex, Int32 yScale, Int32 Index, Int32 Len) | self = sqr(X*xScale + Y*yScale) on sub arrays |
Overload 1: TMtxVecInt AddScaledSqr(TMtxVecInt X, TMtxVecInt Y, Int32 yScale)
Compute sqr(X + Y*yScale)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Y | TMtxVecInt | source TVecInt or TMtxInt |
| 3 | yScale | Int32 |
Result: stored in self (calling object), returns self for chaining
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
Indexed: TMtxVecInt AddScaledSqr(TMtxVecInt X, Int32 XIndex, TMtxVecInt Y, Int32 YIndex, Int32 yScale, Int32 Index, Int32 Len)
Compute sqr(X + Y*yScale) on sub arrays
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | XIndex | Int32 | X start index |
| 3 | Y | TMtxVecInt | source TVecInt or TMtxInt |
| 4 | YIndex | Int32 | Y start index |
| 5 | yScale | Int32 | |
| 6 | Index | Int32 | start index |
| 7 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Overload 2: TMtxVecInt AddScaledSqr(TMtxVecInt X, Int32 xScale, TMtxVecInt Y, Int32 yScale)
Compute sqr(X*xScale + Y*yScale)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | xScale | Int32 | |
| 3 | Y | TMtxVecInt | source TVecInt or TMtxInt |
| 4 | yScale | Int32 |
Result: stored in self (calling object), returns self for chaining
Overload 3: TMtxVecInt AddScaledSqr(TMtxVecInt X, Int32 XIndex, Int32 xScale, TMtxVecInt Y, Int32 YIndex, Int32 yScale, Int32 Index, Int32 Len)
Compute sqr(X*xScale + Y*yScale) on sub arrays
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | XIndex | Int32 | X start index |
| 3 | xScale | Int32 | |
| 4 | Y | TMtxVecInt | source TVecInt or TMtxInt |
| 5 | YIndex | Int32 | Y start index |
| 6 | yScale | Int32 | |
| 7 | Index | Int32 | start index |
| 8 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining