OscProb
PMNS_SNSI.cxx File Reference
#include "PMNS_SNSI.h"

Go to the source code of this file.

Functions

void HermitianSquare (complexD(&A)[3][3])
 

Function Documentation

◆ HermitianSquare()

void HermitianSquare ( complexD(&)  A[3][3])

Square a Hermitian matrix

Parameters
A- input matrix A

Definition at line 98 of file PMNS_SNSI.cxx.

99{
100 complexD tmp[3][3];
101 for (int i = 0; i < 3; i++) {
102 for (int j = i; j < 3; j++) {
103 tmp[i][j] = A[i][j];
104 if (i < j) tmp[j][i] = conj(A[i][j]);
105 A[i][j] = 0;
106 }
107 }
108
109 for (int i = 0; i < 3; i++) {
110 for (int j = i; j < 3; j++) {
111 for (int k = 0; k < 3; k++) { A[i][j] += tmp[i][k] * tmp[k][j]; }
112 }
113 }
114}
std::complex< double > complexD
Definition: Definitions.h:21

Referenced by OscProb::PMNS_SNSI::UpdateHam().