fix compiler error in SparseMatrix due to missing typename