up previous next
rref    --    reduced row echelon form of a matrix


Syntax
rref(M: MAT): MAT

Description
This function returns the reduced row echelon form of M ; the columns are considered in left-to-right order. An error is signalled if the matrix is not over a field.

Example
/**/  M := mat([[1,2,3],[2,3,4]]);
/**/  rref(M);
matrix(QQ,
 [[1, 0, -1],
  [0, 1, 2]])

See Also