pivots
- compas.numerical.pivots(U, tol=None)[source]
Identify the pivots of input matrix U.
- Parameters
U (array-like) – Matrix U represented as an array or list.
- Returns
list – Pivot column indices.
Notes
If the matrix U is in Reduced Row Echelon Form, the pivots are the columns with leading non-zero coefficients per row.
Examples
>>> A = [[1, 0, 1, 3], [2, 3, 4, 7], [-1, -3, -3, -4]] >>> n = rref_sympy(A) >>> pivots(n) [0, 1]