Commit df3b073b authored by Martin Reinecke's avatar Martin Reinecke
Browse files

remove unused (and potentially problematic) operations

parent 5dcdcd7e
Pipeline #20374 passed with stage
in 4 minutes and 55 seconds
...@@ -22,9 +22,7 @@ from .field import Field ...@@ -22,9 +22,7 @@ from .field import Field
from . import dobj from . import dobj
__all__ = ['cos', 'sin', 'cosh', 'sinh', 'tan', 'tanh', 'arccos', 'arcsin', __all__ = ['sqrt', 'exp', 'log', 'conjugate']
'arccosh', 'arcsinh', 'arctan', 'arctanh', 'sqrt', 'exp', 'log',
'conj', 'conjugate']
def _math_helper(x, function, out): def _math_helper(x, function, out):
...@@ -39,54 +37,6 @@ def _math_helper(x, function, out): ...@@ -39,54 +37,6 @@ def _math_helper(x, function, out):
return Field(domain=x.domain, val=function(x.val)) return Field(domain=x.domain, val=function(x.val))
def cos(x, out=None):
return _math_helper(x, dobj.cos, out)
def sin(x, out=None):
return _math_helper(x, dobj.sin, out)
def cosh(x, out=None):
return _math_helper(x, dobj.cosh, out)
def sinh(x, out=None):
return _math_helper(x, dobj.sinh, out)
def tan(x, out=None):
return _math_helper(x, dobj.tan, out)
def tanh(x, out=None):
return _math_helper(x, dobj.tanh, out)
def arccos(x, out=None):
return _math_helper(x, dobj.arccos, out)
def arcsin(x, out=None):
return _math_helper(x, dobj.arcsin, out)
def arccosh(x, out=None):
return _math_helper(x, dobj.arccosh, out)
def arcsinh(x, out=None):
return _math_helper(x, dobj.arcsinh, out)
def arctan(x, out=None):
return _math_helper(x, dobj.arctan, out)
def arctanh(x, out=None):
return _math_helper(x, dobj.arctanh, out)
def sqrt(x, out=None): def sqrt(x, out=None):
return _math_helper(x, dobj.sqrt, out) return _math_helper(x, dobj.sqrt, out)
...@@ -101,7 +51,3 @@ def log(x, out=None): ...@@ -101,7 +51,3 @@ def log(x, out=None):
def conjugate(x, out=None): def conjugate(x, out=None):
return _math_helper(x, dobj.conjugate, out) return _math_helper(x, dobj.conjugate, out)
def conj(x, out=None):
return _math_helper(x, dobj.conj, out)
...@@ -521,30 +521,6 @@ class Field(object): ...@@ -521,30 +521,6 @@ class Field(object):
def __ipow__(self, other): def __ipow__(self, other):
return self._binary_helper(other, op='__ipow__') return self._binary_helper(other, op='__ipow__')
def __lt__(self, other):
return self._binary_helper(other, op='__lt__')
def __le__(self, other):
return self._binary_helper(other, op='__le__')
def __ne__(self, other):
if other is None:
return True
else:
return self._binary_helper(other, op='__ne__')
def __eq__(self, other):
if other is None:
return False
else:
return self._binary_helper(other, op='__eq__')
def __ge__(self, other):
return self._binary_helper(other, op='__ge__')
def __gt__(self, other):
return self._binary_helper(other, op='__gt__')
def __repr__(self): def __repr__(self):
return "<nifty2go.Field>" return "<nifty2go.Field>"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment