rref

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

Reduced row-echelon form of matrix A.

Parameters:
Aarray-like

Matrix A represented as an array or list.

tolfloat

Tolerance.

Returns:
array

RREF of A.

Notes

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

Examples

>>>