OscProb
complexsolver.cxx
Go to the documentation of this file.
1
2#include <Eigen/Eigenvalues>
3
4#include "complexsolver.h"
5
6//.............................................................................
13void complexsolver(const Eigen::Matrix3cd& A, OscProb::vectorD& w)
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}
void complexsolver(const Eigen::Matrix3cd &A, OscProb::vectorD &w)
std::vector< double > vectorD
Definition: Definitions.h:18