View for smith normal form