function UpperTriangle(const Mtx: TMtx; ZeroLower: Boolean; Diagonal: Boolean): Matrix;
Returns the upper triangle of the matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtx | |
| 2 | ZeroLower | Boolean | |
| 3 | Diagonal | Boolean |
Returns: Matrix
Remarks:
Internally calls Matrix.UpperTriangle
Examples
var A,B: TMtx;
begin
CreateIt(A,B);
A.SetIt(2,1,True,[1,2,
2,4]); // 2x2, not complex matrix
B.UpperTriangle(A,True,True);
// B becomes:
// [1,2,
// [0,4]
FreeIt(A,B);
end;