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
a69b2fd4
Commit
a69b2fd4
authored
Jan 20, 2020
by
Philipp Arras
Browse files
Add one_over() to MultiField
parent
e68753f6
Pipeline
#67366
passed with stages
in 30 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty6/multi_field.py
View file @
a69b2fd4
...
...
@@ -343,7 +343,7 @@ for op in ["__iadd__", "__isub__", "__imul__", "__idiv__",
setattr
(
MultiField
,
op
,
func
(
op
))
for
f
in
[
"sqrt"
,
"exp"
,
"log"
,
"log1p"
,
"expm1"
,
"tanh"
]:
for
f
in
[
"sqrt"
,
"exp"
,
"log"
,
"log1p"
,
"expm1"
,
"tanh"
,
"one_over"
]:
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