tasmet/src/solver/brent.h

25 lines
574 B
C++

// brent.h
//
// Author: J.A. de Jong
//
// Description:
// Brent's root finding algorithm
//////////////////////////////////////////////////////////////////////
#pragma once
#ifndef BRENT_H
#define BRENT_H
#include "solver.h"
class Brent: public Solver<NoGradientNonlinearSystem<d>,d> {
d _reltol;
public:
Brent(const NoGradientNonlinearSystem<d>& sys,d reltol=1e-6);
protected:
void start_implementation(NoGradientNonlinearSystem<d>& sys,progress_callback*);
};
#endif // BRENT_H
//////////////////////////////////////////////////////////////////////