anm sparse-matrix version