Matrix UpperTriangle(TMtx Mtx, Boolean ZeroLower, Boolean Diagonal)
Returns the upper triangle of the matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtx | source TMtx |
| 2 | ZeroLower | Boolean | |
| 3 | Diagonal | Boolean |
Returns: Matrix
Remarks:
Internally calls Dew.Math.Matrix.UpperTriangle
Examples
TMtx A;
TMtx B;
MtxVec.CreateIt(out A, out B);
A.SetIt(2,1,true,[1,2,
2,4]); // 2x2, !complex matrix
B.UpperTriangle(A,true,true);
// B becomes:
// [1,2,
// [0,4]
MtxVec.FreeIt(ref A, ref B);