Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NIFTy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
NIFTy
Merge requests
!371
Fix doc
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix doc
fix_doc
into
NIFTy_5
Overview
0
Commits
2
Pipelines
1
Changes
1
Merged
Martin Reinecke
requested to merge
fix_doc
into
NIFTy_5
5 years ago
Overview
0
Commits
2
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
NIFTy_5
NIFTy_5 (base)
and
latest version
latest version
bbfe02a1
2 commits,
5 years ago
1 file
+
5
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
nifty5/operators/contraction_operator.py
+
5
−
4
Options
@@ -24,20 +24,21 @@ from .linear_operator import LinearOperator
class
ContractionOperator
(
LinearOperator
):
"""
A
:class:`LinearOperator` which sums up fields into the direction of
"""
A :class:`LinearOperator` which sums up fields into the direction of
subspaces.
This Operator sums up a field with is defined on a :class:`DomainTuple`
to a :class:`DomainTuple` which
contains the former as a subset
.
to a :class:`DomainTuple` which
is a subset of the former
.
Parameters
----------
domain : Domain, tuple of Domain or DomainTuple
spaces : int or tuple of int
spaces :
None,
int or tuple of int
The elements of
"
domain
"
which are contracted.
If `None`, everything is contracted
weight : int, default=0
If nonzero, the fields defined on self.domain are weighted with the
specified power.
specified power
along the submdomains which are contracted
.
"""
def
__init__
(
self
,
domain
,
spaces
,
weight
=
0
):
Loading