Class TOMS748RootFinder

Inheritance Relationships

Base Type

Class Documentation

class TOMS748RootFinder : public RootFinder

Root finder wrapping Boost’s toms748 algorithm.

Controlled by the maximum number of iterations. The convergence tolerance is fixed internally as a binary digit target for the root estimate.

Usage

    RootFinder
    {
        type       TOMS748;
        maxIter    value; (default 30)
    }

Contributors/Copyright: 2023-2026 Timofey Mukha

Source files

Public Functions

inline TOMS748RootFinder(const word &rootFinderName, std::function<scalar(scalar)> f, std::function<scalar(scalar)> d, const label maxIter)

Construct given name, function, its derivative and maximum number.

of iterations

inline TOMS748RootFinder(std::function<scalar(scalar)> f, std::function<scalar(scalar)> d, const dictionary &dict)

Construct given a function, its derivative, and dictionary.

inline TOMS748RootFinder(const dictionary &dict)

Construct given dictionary.

TOMS748RootFinder(const TOMS748RootFinder&) = default

Copy constructor.

inline virtual autoPtr<RootFinder> clone() const

Clone the object.

inline virtual ~TOMS748RootFinder()

Destructor.

virtual std::pair<scalar, label> root(scalar guess, scalar lowerBound, scalar upperBound) const

Compute and return root.

inline virtual void write(Ostream &os) const

Write.