(self)
return len(self._smat)
Returns the number of non-zero elements in Matrix.
Returns the number of non-zero elements in Matrix.
Returns the number of non - zero elements in Matrix .
def nnz(self):
        """Returns the number of non-zero elements in Matrix."""
        return len(self._smat)
def nnz ( self ) : return len ( self . _smat )