rref

compas.numerical.rref(A, tol=None)[source]

Reduced row-echelon form of matrix A.

Parameters
  • A (array-like) – Matrix A represented as an array or list.

  • tol (float) – Tolerance.

Returns

array – RREF of A.

Notes

A matrix is in reduced row-echelon form after Gauss-Jordan elimination.

Examples

>>>