Class poly_real_base (o2scl)

O2scl : Class List

template<class fp_t = double>
class o2scl::poly_real_base

Base class for a polynomial with real coefficients.

Public Types

typedef boost::numeric::ublas::vector<double> ubvector
typedef boost::numeric::ublas::matrix<double> ubmatrix

Public Functions

inline poly_real_base()
inline virtual ~poly_real_base()
template<class vec_t = std::vector<fp_t>>
inline int polish_r_arr(int n, const vec_t &co, int nr, vec_t &ro)

Polish the roots.

template<class vec_t = std::vector<fp_t>>
inline fp_t polish_fun(fp_t x, int n, const vec_t &co)

Desc.

Protected Attributes

o2scl::root_brent_gsl<std::function<fp_t(fp_t)>, fp_t> rbg

Solver for root polishing.