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
765a6cc6
Commit
765a6cc6
authored
May 15, 2020
by
Philipp Arras
Browse files
Docstring
parent
90cd3bf1
Pipeline
#74994
passed with stages
in 25 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty6/operators/contraction_operator.py
View file @
765a6cc6
...
...
@@ -27,7 +27,7 @@ class ContractionOperator(LinearOperator):
"""A :class:`LinearOperator` which sums up fields into the direction of
subspaces.
This Operator sums up a field w
it
h is defined on a :class:`DomainTuple`
This Operator sums up a field w
hic
h is defined on a :class:`DomainTuple`
to a :class:`DomainTuple` which is a subset of the former.
Parameters
...
...
@@ -72,6 +72,19 @@ class ContractionOperator(LinearOperator):
def
IntegrationOperator
(
domain
,
spaces
):
"""A :class:`LinearOperator` which integrates fields into the direction
of subspaces.
This Operator integrates a field which is defined on a :class:`DomainTuple`
to a :class:`DomainTuple` which is a subset of the former.
Parameters
----------
domain : Domain, tuple of Domain or DomainTuple
spaces : None, int or tuple of int
The elements of "domain" which are contracted.
If `None`, everything is contracted
"""
domain
=
DomainTuple
.
make
(
domain
)
swgt
=
domain
.
scalar_weight
(
spaces
)
return
ContractionOperator
(
domain
,
spaces
,
swgt
)
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