i4mat_rref2, a MATLAB code which computes a version of the reduced row echelon form (RREF) of an integer matrix.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


i4mat_rref2 is available in a MATLAB version.

Related Data and Programs:


polyominoes, a MATLAB code which defines, solves, and plots a variety of polyomino tiling problems, which are solved by a direct algebraic approach involving the reduced row echelon form (RREF) of a specific matrix, instead of the more typical brute-force or backtracking methods.

row_echelon_integer, a MATLAB code which carries out the exact computation of the integer row echelon form (IREF) and integer reduced row echelon form (IRREF) of an integer matrix.

rref_test, a MATLAB code which calls rref() for the reduced row echelon form (RREF) of a matrix, which can be singular or rectangular.


  1. Charles Cullen,
    Linear Algebra with Applications,
    Second Edition,
    Pearson, 1997,
    ISBN: 978-0673993861.
  2. Charles Cullen,
    An Introduction to Numerical Linear Algebra,
    PWS Publishing Company, 1994,
    ISBN: 978-0534936903,
    LC: QA185.D37.C85.

Source Code:

Last revised on 02 February 2019.