Skip to content
GitLab
Menu
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
988f368b
Commit
988f368b
authored
Oct 23, 2018
by
Martin Reinecke
Browse files
add clipped_exp to MultiField
parent
c59137cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/multi_field.py
View file @
988f368b
...
...
@@ -292,7 +292,7 @@ for op in ["__iadd__", "__isub__", "__imul__", "__idiv__",
setattr
(
MultiField
,
op
,
func
(
op
))
for
f
in
[
"sqrt"
,
"exp"
,
"log"
,
"tanh"
]:
for
f
in
[
"sqrt"
,
"exp"
,
"log"
,
"tanh"
,
"clipped_exp"
]:
def
func
(
f
):
def
func2
(
self
):
fu
=
getattr
(
Field
,
f
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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