# because the MatrixEJA is not presently a subclass of the
# FDEJA class that defines rank() and one().
self.rank.set_cache(n)
- self.one.set_cache(self(A.one()))
+ if n == 0:
+ self.one.set_cache( self.zero() )
+ else:
+ self.one.set_cache(self(A.one()))
# because the MatrixEJA is not presently a subclass of the
# FDEJA class that defines rank() and one().
self.rank.set_cache(n)
- self.one.set_cache(self(A.one()))
+ if n == 0:
+ self.one.set_cache( self.zero() )
+ else:
+ self.one.set_cache(self(A.one()))
@staticmethod
def _max_random_instance_size():
# because the MatrixEJA is not presently a subclass of the
# FDEJA class that defines rank() and one().
self.rank.set_cache(n)
- self.one.set_cache(self(A.one()))
+ if n == 0:
+ self.one.set_cache( self.zero() )
+ else:
+ self.one.set_cache(self(A.one()))
@staticmethod
# because the MatrixEJA is not presently a subclass of the
# FDEJA class that defines rank() and one().
self.rank.set_cache(n)
- self.one.set_cache(self(A.one()))
+ if n == 0:
+ self.one.set_cache( self.zero() )
+ else:
+ self.one.set_cache(self(A.one()))
class AlbertEJA(OctonionHermitianEJA):