14 #ifndef INCLUDED_numeric_polynomial_hh
15 #define INCLUDED_numeric_polynomial_hh
33 #include <cereal/access.fwd.hpp>
34 #include <cereal/types/polymorphic.fwd.hpp>
35 #endif // SERIALIZATION
45 std::string
const & polynomial_name,
93 double const variable,
95 double & deriv)
const;
99 eval(
double const variable );
102 show( std::ostream & out )
const;
117 friend class cereal::access;
121 template<
class Archive >
void save( Archive & arc )
const;
122 template<
class Archive >
void load( Archive & arc );
123 #endif // SERIALIZATION
133 CEREAL_FORCE_DYNAMIC_INIT( numeric_polynomial )
134 #endif // SERIALIZATION
137 #endif // INCLUDED_numeric_polynomial_HH
ReferenceCount base class – dispatch class.
Polynomial_1d(std::string const &polynomial_name, Real const xmin, Real const xmax, Real const min_val, Real const max_val, Real const root1, Real const root2, Size degree, utility::vector1< Real > const &coefficients)
ctor
std::string polynomial_name_
Base class for reference-counted polymorphic classes.
double eval(double const variable)
just evaluate the polynomial, w/o derivatives
rosetta project type declarations. Should be kept updated with core/types.hh. This exists because num...
utility::vector1< Real > const & coefficients() const
void operator()(double const variable, double &value, double &deriv) const
Evaluate the polynomial and its derivative.
utility::vector1< Real > coefficients_
vector1: std::vector with 1-based indexing
struct numeric::kinematic_closure::p poly
forward header for Polynomial class
std::ostream & operator<<(std::ostream &stream, BodyPosition< T > const &p)
stream << BodyPosition output operator
void check_invariants() const
void show(std::ostream &out) const