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
Neel Shah
NIFTy
Commits
9ddc2cd9
Commit
9ddc2cd9
authored
Jun 08, 2021
by
Philipp Arras
Browse files
Add .scale() to Field
parent
b4b25dc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/field.py
View file @
9ddc2cd9
...
...
@@ -405,6 +405,11 @@ class Field(Operator):
return
Field
(
DomainTuple
.
make
(
return_domain
),
data
)
def
scale
(
self
,
factor
):
if
factor
==
1
:
return
self
return
factor
*
self
def
sum
(
self
,
spaces
=
None
):
"""Sums up over the sub-domains given by `spaces`.
...
...
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