Class poly_real_base (o2scl)

O2scl : Class List

template<class fp_t = double>
class poly_real_base

Base class for a polynomial with real coefficients.

Subclassed by o2scl::cubic_real< double >, o2scl::cubic_real< cpp_dec_float_25 >, o2scl::cubic_real< long double >, o2scl::cubic_real< cpp_dec_float_35 >, o2scl::cubic_real< cpp_dec_float_50 >, o2scl::cubic_real< cpp_dec_float_100 >, o2scl::quadratic_real< double >, o2scl::quartic_real< double >, o2scl::cubic_real< fp_t >, o2scl::quadratic_real< fp_t >, o2scl::quartic_real< fp_t >

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.