There is a maintenance of MPCDF Gitlab on Thursday, April 22st 2020, 9:00 am CEST - Expect some service interruptions during this time

Commit 415e1f61 authored by Philipp Frank's avatar Philipp Frank

no more arcsin and arccos

parent 353075f5
Pipeline #93596 passed with stages
in 11 minutes and 11 seconds
......@@ -150,8 +150,6 @@ ptw_dict = {
"clip": (np.clip, _clip_helper),
"softplus": (softplus, _softplus_helper),
"exponentiate": (exponentiate, _exponentiate_helper),
"arcsin": (np.arcsin, lambda v: (np.arcsin(v), 1./np.sqrt(1.-v**2))),
"arccos": (np.arccos, lambda v: (np.arccos(v), -1./np.sqrt(1.-v**2))),
"arctan": (np.arctan, lambda v: (np.arctan(v), 1./(1.+v**2))),
"unitstep": (lambda v: _step_helper(v, False), lambda v: _step_helper(v, True))
}
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