upper_triangularize function
A matrix with the entries below the diagonal set to zero.
How to write it
upper_triangularize(matrix)
- matrix
- A matrix, written as a list of rows. Takes a matrix, written as a list of rows.
Examples
upper_triangularize([[1, 2], [3, 4]])In the solver,
Open in the solverupper_triangularize([[1, 2], [3, 4]])gives[[1, 2], [0, 4]].
Related functions
- lower_triangularize
A matrix with the entries above the diagonal set to zero.
- adjugate
Adjugate of a square matrix: the transpose of its cofactors.
- transpose
Transpose of a matrix: its rows become its columns.
- characteristic_polynomial
Characteristic polynomial of a square matrix in a variable.
- trace
Trace of a square matrix: the sum of its diagonal.
- cholesky_decomposition
Cholesky decomposition of a symmetric positive definite matrix.