X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=mjo%2Feja%2Feja_operator.py;h=8973a951aa80f2275c527fd67d78b30259971866;hb=852c32e6db3d27310489abd9e23787a1b7d068ad;hp=1f10048812301baa8c13c4d49f5e4475a9cc04d7;hpb=f69c89ed86f1e6fd4ee44f5e7df73680801ed6f2;p=sage.d.git diff --git a/mjo/eja/eja_operator.py b/mjo/eja/eja_operator.py index 1f10048..8973a95 100644 --- a/mjo/eja/eja_operator.py +++ b/mjo/eja/eja_operator.py @@ -46,14 +46,14 @@ class FiniteDimensionalEuclideanJordanAlgebraOperator(Map): EXAMPLES:: sage: J = JordanSpinEJA(3) - sage: x = J.linear_combination(zip(range(len(J.gens())), J.gens())) + sage: x = J.linear_combination(zip(J.gens(),range(len(J.gens())))) sage: id = identity_matrix(J.base_ring(), J.dimension()) sage: f = FiniteDimensionalEuclideanJordanAlgebraOperator(J,J,id) sage: f(x) == x True """ - return self.codomain()(self.matrix()*x.vector()) + return self.codomain().from_vector(self.matrix()*x.to_vector()) def _add_(self, other):