lowmat, lowmat1¶
Purpose¶
Returns the lower portion of a matrix. lowmat()
returns the main diagonal and every element below. lowmat1()
is the same except it replaces the main diagonal with ones.
Format¶
Examples¶
x = { 1 2 -1,
2 3 -2,
1 -2 4 };
L = lowmat(x);
L1 = lowmat1(x);
The resulting matrices are
1 0 0 1 0 0
L = 2 3 0 L1 = 2 1 0
1 -2 4 1 -2 1