Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
d9907d16
Commit
d9907d16
authored
Apr 07, 2020
by
Lukas Platz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics
parent
8dca6e3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
nifty6/library/correlated_fields.py
nifty6/library/correlated_fields.py
+2
-3
No files found.
nifty6/library/correlated_fields.py
View file @
d9907d16
...
@@ -243,12 +243,11 @@ class _SpecialSum(EndomorphicOperator):
...
@@ -243,12 +243,11 @@ class _SpecialSum(EndomorphicOperator):
class
_Distributor
(
LinearOperator
):
class
_Distributor
(
LinearOperator
):
def
__init__
(
self
,
dofdex
,
domain
,
target
,
space
=
0
):
def
__init__
(
self
,
dofdex
,
domain
,
target
):
self
.
_dofdex
=
dofdex
self
.
_dofdex
=
dofdex
self
.
_target
=
makeDomain
(
target
)
self
.
_target
=
makeDomain
(
target
)
self
.
_domain
=
makeDomain
(
domain
)
self
.
_domain
=
makeDomain
(
domain
)
self
.
_sl
=
(
slice
(
None
),)
*
space
self
.
_capability
=
self
.
TIMES
|
self
.
ADJOINT_TIMES
self
.
_capability
=
self
.
TIMES
|
self
.
ADJOINT_TIMES
def
apply
(
self
,
x
,
mode
):
def
apply
(
self
,
x
,
mode
):
...
@@ -282,7 +281,7 @@ class _Amplitude(Operator):
...
@@ -282,7 +281,7 @@ class _Amplitude(Operator):
distributed_tgt
=
makeDomain
((
UnstructuredDomain
(
len
(
dofdex
)),
distributed_tgt
=
makeDomain
((
UnstructuredDomain
(
len
(
dofdex
)),
target
))
target
))
target
=
makeDomain
((
UnstructuredDomain
(
N_copies
),
target
))
target
=
makeDomain
((
UnstructuredDomain
(
N_copies
),
target
))
Distributor
=
_Distributor
(
dofdex
,
target
,
distributed_tgt
,
0
)
Distributor
=
_Distributor
(
dofdex
,
target
,
distributed_tgt
)
else
:
else
:
N_copies
=
0
N_copies
=
0
space
=
0
space
=
0
...
...
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