From 38ca36bf7be2feb446d99c7cb85ae77e1fb5013c Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 26 Jul 2019 16:58:23 -0400 Subject: [PATCH] eja: use single-underscore method names for morphisms. --- mjo/eja/euclidean_jordan_algebra.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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. -- 2.44.2