linalg(deprecated)
ihermite
integer-only Hermite Normal Form
Calling Sequence
Parameters
Description
Examples
ihermite(A)
ihermite(A, U)
A
-
rectangular matrix of integers
U
name
Important: The linalg package has been deprecated. Use the superseding packages LinearAlgebra[HermiteForm], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The function ihermite computes the Hermite Normal Form (reduced row echelon form) of a rectangular matrix of integers.
The Hermite normal form of A is an upper triangular matrix H with rank(A) = the number of nonzero rows of H. If A is an n by n matrix of full rank then ∏i],i=1..n⁢H[i.
This is not an efficient method for computing the rank or determinant except that this may yield a partial factorization of det⁡A without doing any explicit factorizations.
The Hermite normal form is obtained by doing elementary row operations. This includes interchanging rows, multiplying through a row by -1, and adding an integral multiple of one row to another.
One can use transposes to obtain column form of the Hermite Normal Form.
In the case of two arguments, the second argument U will be assigned the transformation matrix on output, such that the following holds: ihermite(A) = U A.
The command with(linalg,ihermite) allows the use of the abbreviated form of this command.
Important: The linalg package has been deprecated. Use the superseding packages, LinearAlgebra and VectorCalculus, instead.
with⁡linalg:
H≔array⁡9,−36,30,−36,192,−180,30,−180,180
H≔9−3630−36192−18030−180180
ihermite⁡H
303001200060
To obtain column form of Hermite Normal Form
transpose⁡ihermite⁡transpose⁡H
300012030060
A≔array⁡3,7,11,13,17,19:
B≔ihermite⁡A,U
B≔1296104086
eval⁡U
9−213−3
evalm⁡U&*A−B
000000
See Also
linalg(deprecated)[det]
linalg(deprecated)[hermite]
linalg(deprecated)[ismith]
linalg(deprecated)[rank]
LinearAlgebra
LinearAlgebra[HermiteForm]
Download Help Document