mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-16 20:43:41 +02:00
rtruediv for Corr and Obs implemented
This commit is contained in:
parent
904396dbdd
commit
b23fe67994
2 changed files with 7 additions and 4 deletions
|
@ -752,11 +752,14 @@ class Corr:
|
|||
return self._apply_func_to_corr(np.arctanh)
|
||||
|
||||
# Right hand side operations (require tweak in main module to work)
|
||||
def __radd__(self, y):
|
||||
return self + y
|
||||
|
||||
def __rsub__(self, y):
|
||||
return -self + y
|
||||
|
||||
def __rmul__(self, y):
|
||||
return self * y
|
||||
|
||||
def __radd__(self, y):
|
||||
return self + y
|
||||
def __rtruediv__(self, y):
|
||||
return (self / y) ** (-1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue