True
"""
- # TODO: when the Peirce decomposition is implemented for real,
- # we can use that instead of finding this eigenspace manually.
- #
- # Trivial eigenspaces don't appear in the list, so we default to the
- # trivial one and override it if there's a nontrivial space in the
- # list.
if not self.is_idempotent():
return False
- J1 = VectorSpace(self.parent().base_ring(), 0)
- for (eigval, eigspace) in self.operator().matrix().left_eigenspaces():
- if eigval == 1:
- J1 = eigspace
+ (_,_,J1) = self.parent().peirce_decomposition(self)
return (J1.dimension() == 1)