Currently, generic sparse matrices inherit their nonzero_positions method from matrix0.py. This should be trivial to fix.
def nonzero_positions(self):
return self._entries.keys()
Component: linear algebra
Keywords: sparse
Issue created by migration from https://trac.sagemath.org/ticket/4648