OscProb
complexsolver.h File Reference
#include <Eigen/Core>
#include "Definitions.h"

Go to the source code of this file.

Functions

void complexsolver (const Eigen::Matrix3cd &A, OscProb::vectorD &w)
 

Function Documentation

◆ complexsolver()

void complexsolver ( const Eigen::Matrix3cd &  A,
OscProb::vectorD w 
)

Wrapper to solve non-hermitian matrix eigenvalues.

Parameters
A- Input matrix
w- Output eigenvalues

Definition at line 13 of file complexsolver.cxx.

14{
15 Eigen::ComplexEigenSolver<Eigen::Matrix3cd> eigensolver;
16 eigensolver.compute(A);
17
18 for (int t = 0; t < w.size(); t++) {
19 w[t] = eigensolver.eigenvalues()(t).real();
20 }
21}

Referenced by OscProb::PMNS_Decay::SolveHam().