Rank is wrong for Rational matrices

You could try Hermite Normal Form

The Hecke.jl library supports it

https://github.com/thofma/Hecke.jl/search?&q=hnf

As stated in the references http://nemocas.org/links.html

1 Like