Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Laurell, Pontus Bengt Johan
dmrgpp
Commits
15de0dff
Commit
15de0dff
authored
Mar 10, 2021
by
Alvarez, Gonzalo
Browse files
CorrelationsSkeleton: braketCorners: bug fix when bra != ket
parent
4c0f01ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Engine/CorrelationsSkeleton.h
View file @
15de0dff
...
...
@@ -645,9 +645,8 @@ private:
SizeType
t2
=
helper_
.
leftRightSuper
(
ptr
).
super
().
permutationInverse
(
rprime
+
eta2
*
leftSize
);
if
(
t2
<
offset
||
t2
>=
total
)
continue
;
sum
+=
Acrs
.
getValue
(
k
)
*
Bcrs
.
getValue
(
k2
)
*
PsimagLite
::
conj
(
vec1
.
slow
Access
(
t
))
*
PsimagLite
::
conj
(
vec1
.
fast
Access
(
sector
,
t
-
offse
t
))
*
vec2
.
slowAccess
(
t2
)
*
sign
;
}
}
...
...
@@ -705,9 +704,8 @@ private:
permutationInverse
(
r0
+
r1prime
*
ni
);
SizeType
t2
=
helper_
.
leftRightSuper
(
ptr
).
super
().
permutationInverse
(
eta2
+
rprime
*
leftSize
);
if
(
t2
<
offset
||
t2
>=
total
)
continue
;
sum
+=
PsimagLite
::
conj
(
Acrs
.
getValue
(
k
))
*
Bcrs
.
getValue
(
k2
)
*
PsimagLite
::
conj
(
vec1
.
slow
Access
(
t
))
*
PsimagLite
::
conj
(
vec1
.
fast
Access
(
sector
,
t
-
offse
t
))
*
vec2
.
slowAccess
(
t2
)
*
sign
;
}
}
...
...
@@ -782,10 +780,9 @@ private:
permutationInverse
(
r0prime
+
r1prime
*
ni
);
SizeType
t2
=
helper_
.
leftRightSuper
(
ptr
).
super
().
permutationInverse
(
rprime
+
eta2
*
leftSize
);
if
(
t2
<
offset
||
t2
>=
total
)
continue
;
sum
+=
A1crs
.
getValue
(
k1
)
*
A2crs
.
getValue
(
k2
)
*
Bcrs
.
getValue
(
k3
)
*
PsimagLite
::
conj
(
vec1
.
slow
Access
(
t
))
*
PsimagLite
::
conj
(
vec1
.
fast
Access
(
sector
,
t
-
offse
t
))
*
vec2
.
slowAccess
(
t2
)
*
sign
;
}
}
...
...
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