Smith normal form
Let be a non-zero matrix over a principal ideal domain (PID). Then, there exist invertible and matrices and , so that
where the diagonal elements satisfy . They are called invariant factors.
Syntax
smith_normal_form(Matrix)
Description
Given a matrix, returns a vector with the invariant factors.