linbox
algorithms/smith-form-valence.h

Valence of sparse matrix over Z or Zp.