BubbleProfiler  0.3.0
by Peter Athron, Csaba Balazs, Michael Bardsley, Andrew Fowlie, Dylan Harries & Graham White
Public Member Functions | Protected Member Functions | List of all members
BubbleProfiler::Root_finder< Vector > Class Template Referenceabstract

#include <root_finder.hpp>

Public Member Functions

virtual ~Root_finder ()=default
 
virtual const Vector & get_solution () const =0
 
template<class F >
Root_finder_status find_root (F &&function, const Vector &guess)
 

Protected Member Functions

virtual Root_finder_status solve (const std::function< Vector(const Vector &)> &, const Vector &)=0
 

Detailed Description

template<class Vector>
class BubbleProfiler::Root_finder< Vector >

Definition at line 28 of file root_finder.hpp.

Constructor & Destructor Documentation

template<class Vector>
virtual BubbleProfiler::Root_finder< Vector >::~Root_finder ( )
virtualdefault

Member Function Documentation

template<class Vector>
template<class F >
Root_finder_status BubbleProfiler::Root_finder< Vector >::find_root ( F &&  function,
const Vector &  guess 
)

Run the root finding algorithm.

Template Parameters
FFunction data type
Parameters
functionFunction to find root of
initial_guessStarting point for the algorithm
Returns
Status indicating whether the algorithm succeeded

Definition at line 51 of file root_finder.hpp.

template<class Vector>
virtual const Vector& BubbleProfiler::Root_finder< Vector >::get_solution ( ) const
pure virtual
template<class Vector>
virtual Root_finder_status BubbleProfiler::Root_finder< Vector >::solve ( const std::function< Vector(const Vector &)> &  ,
const Vector &   
)
protectedpure virtual

The documentation for this class was generated from the following file: