PRODUCTS
Products Overview
Mathematica
Mathematica for Students
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Knowledge Base
Learning Center
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Mathematics and Algorithms
>
Matrices and Linear Algebra
>
Matrix Decompositions
>
HermiteDecomposition
>
Mathematica
>
Mathematics and Algorithms
>
Graphs & Networks
>
Graph Programming
>
Matrices and Linear Algebra
>
Matrix Decompositions
>
HermiteDecomposition
>
Mathematica
>
Visualization and Graphics
>
Graphs & Networks
>
Graph Programming
>
Matrices and Linear Algebra
>
Matrix Decompositions
>
HermiteDecomposition
>
BUILT-IN MATHEMATICA SYMBOL
Advanced Matrix Operations
Tutorials »
|
RowReduce
LatticeReduce
See Also »
|
Discrete & Integer Data
Matrix Decompositions
New in 6.0: Mathematics & Algorithms
New in 6.0: Matrix & Linear Algebra Functions
New in 6.0: Number Theory & Integer Functions
More About »
HermiteDecomposition
HermiteDecomposition
[
m
]
gives the Hermite normal form decomposition of an integer matrix
.
MORE INFORMATION
The result is given in the form
where
is a unimodular matrix,
is an upper-triangular matrix, and
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Decompose
m
into a unimodular matrix
u
and an upper-triangular matrix
r
:
The determinant of
u
is a unit:
Decompose
m
into a unimodular matrix
u
and an upper-triangular matrix
r
:
In[1]:=
In[2]:=
Out[2]=
In[3]:=
Out[3]=
The determinant of
u
is a unit:
In[4]:=
Out[4]=
Scope
(5)
A singular matrix
m
:
The number of nonzero rows in
r
is equal to the rank of
m
:
Rectangular matrices
m
:
A rational matrix
m
:
u
is a unimodular integer matrix;
r
is an upper-triangular rational matrix:
A Gaussian integer matrix
m
:
u
is a unimodular Gaussian integer matrix;
r
is an upper-triangular Gaussian integer matrix:
A Gaussian rational matrix
m
:
u
is a unimodular Gaussian integer matrix;
r
is an upper-triangular Gaussian rational matrix:
Applications
(1)
Solve a linear Diophantine equation
:
Form a homogenized system:
Rows of
r
are integer combinations of rows of
m
:
The second row of
r
gives a solution of
:
The last two rows of
r
give a basis of solutions to the homogeneous equation
:
Reduce
uses
HermiteDecomposition
to solve linear Diophantine equations:
Properties & Relations
(2)
HermiteDecomposition
gives a unimodular matrix and an upper-triangular matrix:
The matrices satisfy the equation
:
Det
of a unimodular matrix is a unit:
Inverse
of a unimodular integer matrix is an integer matrix:
Elements of
r
form an upper-triangular basis of the lattice generated by the rows of
m
:
The inverse of
u
provides an explicit representation of rows of
m
in terms of the basis:
LatticeReduce
gives a basis consisting of shorter vectors:
SEE ALSO
RowReduce
LatticeReduce
TUTORIALS
Advanced Matrix Operations
MORE ABOUT
Discrete & Integer Data
Matrix Decompositions
New in 6.0: Mathematics & Algorithms
New in 6.0: Matrix & Linear Algebra Functions
New in 6.0: Number Theory & Integer Functions
New in 6