TESTS::
sage: MatrixAlgebra(0,ZZ,ZZ).zero()
- 0
+ []
"""
if self.nrows() == 0 or self.ncols() == 0:
- # Otherwise we get a crash or a blank space, depending
- # on how hard we work for it.
- return self.parent().entry_algebra().zero().__repr__()
+ # Otherwise we get a crash or a blank space, depending on
+ # how hard we work for it. This is what MatrixSpace(...,
+ # 0) returns.
+ return "[]"
- return table(rs, frame=True)._repr_()
+ return table(self.rows(), frame=True)._repr_()
def list(self):