Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec Rem(TMtxVec X, TMtxVec Y) | The Reminder after division X/Y. |
| └ indexed: TMtxVec Rem(TMtxVec X, TMtxVec Y, Int32 XIndex, Int32 YIndex, Int32 Index, Int32 Len) | ||
| 2 | TMtxVec Rem(TMtxVec X, Double Y) | Calculates reminder after division X/Y according to formula X[i]-y*Trunc(X[i]/y). X must be a real. The results will be saved to the calling Matrix. |
| └ indexed: TMtxVec Rem(TMtxVec X, Double Y, Int32 XIndex, Int32 Index, Int32 Len) |
Overload 1: TMtxVec Rem(TMtxVec X, TMtxVec Y)
The Reminder after division X/Y.
Result: stored in self (calling object), returns self for chaining
Calculates reminder after division according to formula: X[i]-y[i]*Trunc(X[i]/y[i]). The results will be saved to the calling Matrix. X and Y must be a real and have the same length. Size and Dew.Math.Matrix.Complex properties of the calling Matrix are set implicitly to match the X object.
Matrix a;
Matrix b;
Matrix c;
a.SetIt(1,4,false,new double[] {0,1,10,-1,-10}); // a = new double[] {0, 1, 10, -1, -10};
b.SetIt(1,4,false,[0,1,PI,-1,-PI]); // b = [0, 1, PI, -1, -PI];
c.Rem(a,b); // c = new double[] {0, 0, 0.5752, 0, -0.5752}
Indexed: TMtxVec Rem(TMtxVec X, TMtxVec Y, Int32 XIndex, Int32 YIndex, Int32 Index, Int32 Len)
Calculates reminder after division X/Y according to formula: z[i] = X[xi]-y[yi]*Trunc(X[xi]/y[yi]), where i in [Index..Index+Len], xi in [XIndex..XIndex+Len], yi in [YIndex..YIndex+Len].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec | source TVec or TMtx |
| 2 | Y | TMtxVec | source TVec or TMtx |
| 3 | XIndex | Int32 | X start index |
| 4 | YIndex | Int32 | Y start index |
| 5 | Index | Int32 | start index |
| 6 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
The results will be saved to the calling Matrix. X must be a real. An exception will be raised if Dew.Math.Matrix.ConditionCheck is True and array borders are overrun.
Overload 2: TMtxVec Rem(TMtxVec X, Double Y)
Calculates reminder after division X/Y according to formula X[i]-y*Trunc(X[i]/y). X must be a real. The results will be saved to the calling Matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec | source TVec or TMtx |
| 2 | Y | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Size and Dew.Math.Matrix.Complex properties of the calling Matrix are set implicitly to match the X object.
Indexed: TMtxVec Rem(TMtxVec X, Double Y, Int32 XIndex, Int32 Index, Int32 Len)
Calculates reminder after division X/Y according to formula: z[i] = X[xi]-y*Trunc(X[xi]/y), where i in [Index..Index+Len], xi in [XIndex..XIndex+Len].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec | source TVec or TMtx |
| 2 | Y | Double | scalar |
| 3 | XIndex | Int32 | X start index |
| 4 | Index | Int32 | start index |
| 5 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
X must be a real. The results will be saved to the calling Matrix. An exception will be raised if Dew.Math.Matrix.ConditionCheck is True and array borders are overrun.