Skip to content

Commit d859825

Browse files
authored
fix the order of the conjugation when constructing the electron row outer product (#141)
Looking more carefully at eq 5 in Barger et al, the conjugation should be swapped when building the electon row outer product
1 parent 7d204e1 commit d859825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nuTens/propagator/const-density-solver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ void ConstDensityMatterSolver::buildElectronOuterProduct()
4848
if (antiNeutrino)
4949
{
5050
electronOuter =
51-
Tensor::scale(Tensor::outer(mixingMatrix.getValues({0, 0, "..."}).conj(), mixingMatrix.getValues({0, 0, "..."})),
51+
Tensor::scale(Tensor::outer(mixingMatrix.getValues({0, 0, "..."}), mixingMatrix.getValues({0, 0, "..."}).conj()),
5252
-nuTens::constants::Groot2 * density);
5353
}
5454

5555
else
5656
{
5757
electronOuter =
58-
Tensor::scale(Tensor::outer(mixingMatrix.getValues({0, 0, "..."}), mixingMatrix.getValues({0, 0, "..."}).conj()),
58+
Tensor::scale(Tensor::outer(mixingMatrix.getValues({0, 0, "..."}).conj(), mixingMatrix.getValues({0, 0, "..."})),
5959
nuTens::constants::Groot2 * density);
6060
}
6161

0 commit comments

Comments
 (0)