category = Clans(scalar_field).or_subcategory(category).Unital()
- # The normal decomposition assumes that we already have a
- # lower-triangular (Ishi) basis of the form (i,j,k).
- self._rank = 1 + max( k[0]
- for k in vector_space.indices()
- if k[0] == k[1] )
+ if vector_space.dimension().is_zero():
+ self._rank = 0
+ else:
+ # The normal decomposition assumes that we already have a
+ # lower-triangular (Ishi) basis of the form (i,j,k).
+ self._rank = 1 + max( k[0]
+ for k in vector_space.indices()
+ if k[0] == k[1] )
super().__init__(vector_space,
clan_product,