From: Michael Orlitzky Date: Fri, 26 Jul 2019 20:58:23 +0000 (-0400) Subject: eja: use single-underscore method names for morphisms. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=38ca36bf7be2feb446d99c7cb85ae77e1fb5013c;p=sage.d.git eja: use single-underscore method names for morphisms. --- diff --git a/mjo/eja/euclidean_jordan_algebra.py b/mjo/eja/euclidean_jordan_algebra.py index 304d7ff..9414d2c 100644 --- a/mjo/eja/euclidean_jordan_algebra.py +++ b/mjo/eja/euclidean_jordan_algebra.py @@ -39,7 +39,7 @@ class FiniteDimensionalEuclideanJordanAlgebraMorphism(FiniteDimensionalAlgebraMo our EJA, and you can't add/multiply/etc. them. """ - def __add__(self, other): + def _add_(self, other): """ Add two EJA morphisms in the obvious way. @@ -86,7 +86,7 @@ class FiniteDimensionalEuclideanJordanAlgebraMorphism(FiniteDimensionalAlgebraMo check=False) - def __invert__(self): + def _invert_(self): """ EXAMPLES:: @@ -124,7 +124,7 @@ class FiniteDimensionalEuclideanJordanAlgebraMorphism(FiniteDimensionalAlgebraMo return FiniteDimensionalEuclideanJordanAlgebraMorphism(self.parent(), A.inverse()) - def __mul__(self, other): + def _lmul_(self, other): """ Compose two EJA morphisms using multiplicative notation. @@ -162,7 +162,7 @@ class FiniteDimensionalEuclideanJordanAlgebraMorphism(FiniteDimensionalAlgebraMo self.matrix()*other.matrix() ) - def __neg__(self): + def _neg_(self): """ Negate this morphism.