Smith normal form basis
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_basis(Matrix)
Description
Given a matrix, returns a list: the first element is matrix , the second element is the diagonal matrix and the third element is .