flexiblesusy is hosted by Hepforge, IPPP Durham
FlexibleSUSY
gsl_multiroot_fsolver.hpp
Go to the documentation of this file.
1// ====================================================================
2// This file is part of FlexibleSUSY.
3//
4// FlexibleSUSY is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published
6// by the Free Software Foundation, either version 3 of the License,
7// or (at your option) any later version.
8//
9// FlexibleSUSY is distributed in the hope that it will be useful, but
10// WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12// General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with FlexibleSUSY. If not, see
16// <http://www.gnu.org/licenses/>.
17// ====================================================================
18
19#ifndef GSL_MULTIROOT_FSOLVER_H
20#define GSL_MULTIROOT_FSOLVER_H
21
22#include "gsl_vector.hpp"
23#include <gsl/gsl_multiroots.h>
24
25namespace flexiblesusy {
26
31{
32public:
33 GSL_multiroot_fsolver(const gsl_multiroot_fsolver_type* type, std::size_t dim,
34 gsl_multiroot_function* f, const GSL_vector& start);
37 ~GSL_multiroot_fsolver() noexcept;
38 GSL_multiroot_fsolver& operator=(const GSL_multiroot_fsolver&) = delete;
40
41 GSL_vector get_root() const;
42 int iterate();
43 void print_state(std::size_t iteration) const;
44 int test_residual(double precision) const noexcept;
45
46private:
47 gsl_multiroot_fsolver* solver = nullptr;
48};
49
50} // namespace flexiblesusy
51
52#endif
GSL_multiroot_fsolver(GSL_multiroot_fsolver &&)=delete
void print_state(std::size_t iteration) const
GSL_multiroot_fsolver(const gsl_multiroot_fsolver_type *type, std::size_t dim, gsl_multiroot_function *f, const GSL_vector &start)
GSL_multiroot_fsolver(const GSL_multiroot_fsolver &)=delete
int test_residual(double precision) const noexcept
std::complex< double > f(double tau) noexcept