Language Reference

ECHELON Function

ECHELON (matrix) ;

This function is supported by the IML procedure and the iml action.

The ECHELON function uses elementary row operations to reduce a matrix to row-echelon normal form, as in the following example (Graybill 1969):

a = {3  6  9,
     1  2  5,
     2  4 10 };
e = echelon(a);
print e;

Figure 134: Result of the ECHELON Function

e
120
001
000


If the argument is a square matrix, then the row-echelon normal form can be obtained from the Hermite normal form by rearranging rows that are all zeros. See the HERMITE function for details about the Hermite normal form.

Last updated: July 20, 2026