Overload List
Overload 1: function AddScaledSqr(const X: TMtxVec; const xScale: Double; const Y: TMtxVec; const yScale: Double): TMtxVec; overload;
Compute sqr(X*xScale + Y*yScale)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec | source TVec or TMtx |
| 2 | xScale | Double | scalar |
| 3 | Y | TMtxVec | source TVec or TMtx |
| 4 | yScale | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Overload 2: function AddScaledSqr(const X: TMtxVec; const xScale: TCplx; const Y: TMtxVec; const yScale: TCplx): TMtxVec; overload;
Compute sqr(X*xScale + Y*yScale)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec | source TVec or TMtx |
| 2 | xScale | TCplx | scalar |
| 3 | Y | TMtxVec | source TVec or TMtx |
| 4 | yScale | TCplx | scalar |
Result: stored in self (calling object), returns self for chaining
Overload 3: function AddScaledSqr(const X, Y: TMtxVec; const yScale: Double): TMtxVec; overload;
Compute sqr(X + Y*yScale)
Result: stored in self (calling object), returns self for chaining
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
Overload 4: function AddScaledSqr(const X, Y: TMtxVec; const yScale: TCplx): TMtxVec; overload;
Compute sqr(X + Y*yScale)
Result: stored in self (calling object), returns self for chaining
Overload 5: function AddScaledSqr(const X: TMtxVec; xIndex: integer; const xScale: Double; const Y: TMtxVec; yIndex: integer; const yScale: Double; Index, Len: integer): TMtxVec; overload;
Compute sqr(X*xScale + Y*yScale) on sub arrays
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec | source TVec or TMtx |
| 2 | xIndex | integer | |
| 3 | xScale | Double | scalar |
| 4 | Y | TMtxVec | source TVec or TMtx |
| 5 | yIndex | integer | |
| 6 | yScale | Double | scalar |
| 7 | Index | integer | start index |
| 8 | Len | integer | element count |
Result: stored in self (calling object), returns self for chaining
Overload 6: function AddScaledSqr(const X: TMtxVec; xIndex: integer; const xScale: TCplx; const Y: TMtxVec; yIndex: integer; const yScale: TCplx; Index, Len: integer): TMtxVec; overload;
Compute sqr(X*xScale + Y*yScale) on sub arrays
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec | source TVec or TMtx |
| 2 | xIndex | integer | |
| 3 | xScale | TCplx | scalar |
| 4 | Y | TMtxVec | source TVec or TMtx |
| 5 | yIndex | integer | |
| 6 | yScale | TCplx | scalar |
| 7 | Index | integer | start index |
| 8 | Len | integer | element count |
Result: stored in self (calling object), returns self for chaining
Overload 7: function AddScaledSqr(const X: TMtxVec; xIndex: integer; const Y: TMtxVec; yIndex: integer; const yScale: Double; Index, Len: integer): TMtxVec; overload;
Compute sqr(X + Y*yScale) on sub arrays
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec | source TVec or TMtx |
| 2 | xIndex | integer | |
| 3 | Y | TMtxVec | source TVec or TMtx |
| 4 | yIndex | integer | |
| 5 | yScale | Double | scalar |
| 6 | Index | integer | start index |
| 7 | Len | integer | element count |
Result: stored in self (calling object), returns self for chaining