]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: implement operator_commutes_with() in terms of operator().
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 28 Jul 2019 14:53:15 +0000 (10:53 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 29 Jul 2019 03:19:01 +0000 (23:19 -0400)
mjo/eja/euclidean_jordan_algebra.py

index 5f9d5ba22435bb4c0de7391b35f18bc4d00d53fd..30881da2bf696d01b51b6d159cb005f3a9459728 100644 (file)
@@ -967,8 +967,8 @@ class FiniteDimensionalEuclideanJordanAlgebra(FiniteDimensionalAlgebra):
             if not other in self.parent():
                 raise TypeError("'other' must live in the same algebra")
 
-            A = self.operator_matrix()
-            B = other.operator_matrix()
+            A = self.operator()
+            B = other.operator()
             return (A*B == B*A)