Commit 35da33ea authored by Martin Reinecke's avatar Martin Reinecke

Merge branch 'add_nonlinearities' into 'NIFTy_5'

Add sqrt to linearization

See merge request !338
parents c763652b a7f9c734
Pipeline #52869 passed with stages
in 9 minutes and 18 seconds
......@@ -298,6 +298,9 @@ class Linearization(object):
tmp2 = makeOp(1. - (tmp == min) - (tmp == max))
return self.new(tmp, tmp2(self._jac))
def sqrt(self):
return self.__pow__(0.5)
def sin(self):
tmp = self._val.sin()
tmp2 = self._val.cos()
......
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