Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xQML
xQML
Commits
04a55c92
Commit
04a55c92
authored
Mar 04, 2020
by
Matthieu Tristram
Browse files
Add comments
parent
51676738
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
xqml/estimators.py
xqml/estimators.py
+2
-1
No files found.
xqml/estimators.py
View file @
04a55c92
...
...
@@ -145,6 +145,7 @@ def CrossWindowFunction(El, Pl):
"""
Compute mode-mixing matrix (Tegmark's window matrix)
Wll = Trace[invCAA.Pl.invCBB.Pl] = Trace[El.Pl]
Use the trick with matrices: Trace[A.B] = sum(A x B) (where . is the matrix product and x the elementwise mult)
Parameters
----------
...
...
@@ -169,7 +170,7 @@ def CrossWindowFunction(El, Pl):
"""
nl
=
len
(
El
)
#
pas de
transpose
car
symm
#
No
transpose
because E
symm
Wll
=
np
.
asarray
(
[
np
.
sum
(
E
*
P
)
for
E
in
El
for
P
in
Pl
]
).
reshape
(
nl
,
nl
)
return
Wll
...
...
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