Function reference · Linear algebra

rref

Returns the reduced row-echelon form of a matrix.

rref(...) performs row reduction and returns the reduced row-echelon form.

An optional prime modulus selects finite-field arithmetic.

Examples

These examples use Nerdamer Notation.

Reduce an invertible 2 by 2 matrix.

rref(matrix([1,2],[3,4]))
// → matrix([1, 0], [0, 1])

Interfaces

The same operation is available through the interfaces below.

Nerdamer Notation

Nerdamer Notation

Use this form inside input passed to nerdamer(...).

rref(matrix[, prime])

Parameters

  • matrix — Matrix to reduce.
  • prime — Optional modulus for finite-field arithmetic.

← Back to Reference