Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
bdb90c94
Commit
bdb90c94
authored
Aug 02, 2018
by
Martin Reinecke
Browse files
fix
parent
18ea9e67
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/sugar.py
View file @
bdb90c94
...
...
@@ -260,8 +260,7 @@ _current_module = sys.modules[__name__]
for
f
in
[
"sqrt"
,
"exp"
,
"log"
,
"tanh"
,
"positive_tanh"
,
"conjugate"
]:
def
func
(
f
):
def
func2
(
x
):
from
.linearization
import
Linearization
if
isinstance
(
x
,
(
Field
,
MultiField
,
Linearization
)):
if
isinstance
(
x
,
(
Field
,
MultiField
)):
return
getattr
(
x
,
f
)()
else
:
return
getattr
(
np
,
f
)(
x
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment