Skip to content
Snippets Groups Projects
Commit 781871d9 authored by Tobias Leibner's avatar Tobias Leibner
Browse files

[eigen-solver.internal.base] add constructor

parent 5a8b311d
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ class EigenSolverOptions;
namespace internal {
static void ensure_eigen_solver_type(const std::string& type, const std::vector<std::string>& available_types)
static inline void ensure_eigen_solver_type(const std::string& type, const std::vector<std::string>& available_types)
{
bool contained = false;
for (const auto& tp : available_types)
......@@ -52,7 +52,7 @@ static void ensure_eigen_solver_type(const std::string& type, const std::vector<
} // ... ensure_type(...)
static Common::Configuration default_eigen_solver_options()
static inline Common::Configuration default_eigen_solver_options()
{
Common::Configuration opts;
opts["compute_eigenvalues"] = "true";
......@@ -106,6 +106,15 @@ public:
pre_checks();
}
EigenSolverBase(const MatrixType& matrix, Common::Configuration* opts)
: matrix_(matrix)
, options_(opts)
, computed_(false)
, disable_checks_(options_->get<bool>("disable_checks", false))
{
pre_checks();
}
EigenSolverBase(const ThisType& other) = default;
EigenSolverBase(ThisType&& source) = default;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment