]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: don't change base rings when we don't have to.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 23 Aug 2019 14:44:21 +0000 (10:44 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 23 Aug 2019 14:44:21 +0000 (10:44 -0400)
mjo/eja/eja_algebra.py

index 4acf513d3a8aa6b498621af5908b11363f77d420..2bfa3714420eff322b6b2fb19e177107a191ef29 100644 (file)
@@ -1359,7 +1359,7 @@ class RealSymmetricEJA(FiniteDimensionalEuclideanJordanAlgebra):
             p = z**2 - 2
             if p.is_irreducible():
                 field = NumberField(p, 'sqrt2', embedding=RLF(2).sqrt())
-            S = [ s.change_ring(field) for s in S ]
+                S = [ s.change_ring(field) for s in S ]
             self._basis_normalizers = tuple(
                 ~(self.__class__.natural_inner_product(s,s).sqrt())
                 for s in S )
@@ -1463,7 +1463,7 @@ class ComplexHermitianEJA(FiniteDimensionalEuclideanJordanAlgebra):
             p = z**2 - 2
             if p.is_irreducible():
                 field = NumberField(p, 'sqrt2', embedding=RLF(2).sqrt())
-            S = [ s.change_ring(field) for s in S ]
+                S = [ s.change_ring(field) for s in S ]
             self._basis_normalizers = tuple(
                 ~(self.__class__.natural_inner_product(s,s).sqrt())
                 for s in S )