Hermite normal form (source code)

= Hermite normal form
{c}
{wiki}

The Hermite normal form is a canonical triangular form for an integer <matrix> under integer elementary row operations or, in the column convention, column operations. In the row convention for a nonsingular rank-two <matrix>, positive diagonal entries and reduction of the upper-right entry modulo the lower diagonal entry give the <row Hermite normal form in rank two>.