Public Types |
Public Member Functions |
Private Member Functions |
Static Private Member Functions |
Private Attributes |
List of all members
flexiblesusy::Root_finder< dimension > Class Template Reference Function root finder. More...
Inheritance diagram for flexiblesusy::Root_finder< dimension >:
![]()
Collaboration diagram for flexiblesusy::Root_finder< dimension >:
![]()
Detailed Descriptiontemplate<std::size_t dimension> class flexiblesusy::Root_finder< dimension > Function root finder. The user has to provide the function (of which the root should be found) of the type Function_t. This function gets as arguments an Eigen vector of lenght ‘dimension’ and returns an Eigen vector of the same length. Example: auto parabola = [](const Eigen::Matrix<double,2,1>& x) {
const double y = x(0);
const double z = x(1);
Eigen::Matrix<double,2,1> f;
f << y*(y - 5.0), z*(z - 1.0);
return f;
};
Root_finder<2> root_finder(parabola, 100, 1.0e-5);
const double start[2] = { 10, 10 };
const int status = root_finder.find_root(start);
Definition at line 64 of file root_finder.hpp. Member Typedef Documentation◆ Function_t
template<std::size_t dimension>
Definition at line 67 of file root_finder.hpp. ◆ Vector_t
template<std::size_t dimension>
Definition at line 66 of file root_finder.hpp. Member Enumeration Documentation◆ Solver_type
template<std::size_t dimension>
Definition at line 68 of file root_finder.hpp. Constructor & Destructor Documentation◆ Root_finder() [1/2]
template<std::size_t dimension>
◆ Root_finder() [2/2]
template<std::size_t dimension>
Constructor
Definition at line 111 of file root_finder.hpp. ◆ ~Root_finder()
template<std::size_t dimension>
Member Function Documentation◆ find_root()
template<std::size_t dimension>
Start the minimization
Definition at line 132 of file root_finder.hpp. References flexiblesusy::f(), flexiblesusy::GSL_multiroot_fsolver::get_root(), flexiblesusy::GSL_multiroot_fsolver::iterate(), parameters(), flexiblesusy::GSL_multiroot_fsolver::print_state(), flexiblesusy::GSL_vector::raw(), flexiblesusy::GSL_multiroot_fsolver::test_residual(), flexiblesusy::to_GSL_vector(), and VERBOSE_MSG. ◆ get_solution()
template<std::size_t dimension>
Implements flexiblesusy::EWSB_solver. Definition at line 83 of file root_finder.hpp. References flexiblesusy::Root_finder< dimension >::root. ◆ gsl_function()
template<std::size_t dimension>
Definition at line 166 of file root_finder.hpp. References flexiblesusy::f(), and flexiblesusy::is_finite(). ◆ is_finite()
template<std::size_t dimension>
Definition at line 96 of file root_finder.hpp. ◆ name()
template<std::size_t dimension>
Implements flexiblesusy::EWSB_solver. Definition at line 81 of file root_finder.hpp. References flexiblesusy::Root_finder< dimension >::solver_type_name(). ◆ set_function()
template<std::size_t dimension>
Definition at line 74 of file root_finder.hpp. References flexiblesusy::f(), and flexiblesusy::Root_finder< dimension >::function. ◆ set_max_iterations()
template<std::size_t dimension>
Definition at line 76 of file root_finder.hpp. References flexiblesusy::Root_finder< dimension >::max_iterations. ◆ set_precision()
template<std::size_t dimension>
Definition at line 75 of file root_finder.hpp. References flexiblesusy::Root_finder< dimension >::precision. ◆ set_solver_type()
template<std::size_t dimension>
Definition at line 77 of file root_finder.hpp. References flexiblesusy::Root_finder< dimension >::solver_type. ◆ solve()
template<std::size_t dimension>
Implements flexiblesusy::EWSB_solver. Definition at line 227 of file root_finder.hpp. References flexiblesusy::EWSB_solver::FAIL, and flexiblesusy::EWSB_solver::SUCCESS. Referenced by flexiblesusy::Composite_root_finder< N >::solve(). ◆ solver_type_name()
template<std::size_t dimension>
Definition at line 195 of file root_finder.hpp. Referenced by flexiblesusy::Root_finder< dimension >::name(). ◆ solver_type_to_gsl_pointer()
template<std::size_t dimension>
Definition at line 211 of file root_finder.hpp. Member Data Documentation◆ function
template<std::size_t dimension>
function to minimize Definition at line 89 of file root_finder.hpp. Referenced by flexiblesusy::Root_finder< dimension >::set_function(). ◆ max_iterations
template<std::size_t dimension>
maximum number of iterations Definition at line 86 of file root_finder.hpp. Referenced by flexiblesusy::Root_finder< dimension >::set_max_iterations(). ◆ precision
template<std::size_t dimension>
precision goal Definition at line 87 of file root_finder.hpp. Referenced by flexiblesusy::Root_finder< dimension >::set_precision(). ◆ root
template<std::size_t dimension>
the root Definition at line 88 of file root_finder.hpp. Referenced by flexiblesusy::Root_finder< dimension >::get_solution(). ◆ solver_type
template<std::size_t dimension>
solver type Definition at line 90 of file root_finder.hpp. Referenced by flexiblesusy::Root_finder< dimension >::set_solver_type(). The documentation for this class was generated from the following file: Generated on Sun Apr 6 2025 11:10:37 for FlexibleSUSY by |