]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: use from_vector() instead of relying on call magic in one spot.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 2 Aug 2019 20:23:18 +0000 (16:23 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 2 Aug 2019 20:23:18 +0000 (16:23 -0400)
mjo/eja/eja_algebra.py

index f50e27bb925ecd34f9ea8e5692cdb6e877154037..c1d66ddaaea7f01f86b4f84065cfa22eb5be1590 100644 (file)
@@ -206,7 +206,7 @@ class FiniteDimensionalEuclideanJordanAlgebra(CombinatorialFreeModule):
         # We want the middle equivalent thing in our matrix, but use
         # the first equivalent thing instead so that we can pass in
         # standard coordinates.
-        x = J(W(R.gens()))
+        x = J.from_vector(W(R.gens()))
 
         # Handle the zeroth power separately, because computing
         # the unit element in J is mathematically suspect.