MtxExpr.UpperTriangle Method

Matrix UpperTriangle(TMtx Mtx, Boolean ZeroLower, Boolean Diagonal)

Returns the upper triangle of the matrix.

#NameTypeDescription
1MtxTMtxsource TMtx
2ZeroLowerBoolean
3DiagonalBoolean

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);