Loading...
Searching...
No Matches
TwoStageEigen.h
Go to the documentation of this file.
1#pragma once
33
34#include <Eigen/Core>
35#include <algorithm>
36#include <cmath>
37#include <limits>
38#include <vector>
39
40namespace gpr::linalg {
41
42class TwoStageEigenLib {
43public:
44 static TwoStageEigenLib& instance()
45 {
46 static TwoStageEigenLib lib;
47 return lib;
48 }
49
52 bool available() const noexcept
53 {
54 return true;
55 }
56
61 bool allEigenpairs(const Eigen::MatrixXd& sym, Eigen::Index min_order,
62 Eigen::VectorXd& evals, Eigen::MatrixXd& evecs) const;
63
64private:
65 TwoStageEigenLib() = default;
66};
67
68} // namespace gpr::linalg
static TwoStageEigenLib & instance()
bool available() const noexcept
bool allEigenpairs(const Eigen::MatrixXd &sym, Eigen::Index min_order, Eigen::VectorXd &evals, Eigen::MatrixXd &evecs) const
Dense and structured linear algebra behind the GP: Cholesky and eigen solvers, linear operators,...