1 #ifndef POLYNOMIAL_EVAL_H 2 #define POLYNOMIAL_EVAL_H 27 Poly1d(
const ArrayAd<double, 1>& Coefficients,
const bool Decreasing_order =
true) : coeffs_(Coefficients), decreasing_order_(Decreasing_order) {}
38 blitz::Array<double,1>
operator()(
const blitz::Array<double,1>& Arr)
const;
41 virtual void print(std::ostream& Os)
const;
45 blitz::Array<int,1> eval_indexes()
const;
48 bool decreasing_order_;
This is a Mixin for classes that can be printed.
Poly1d(const ArrayAd< double, 1 > &Coefficients, const bool Decreasing_order=true)
The polynomial's coefficients, in decreasing powers.
double operator()(double Value) const
Evaluate polynomial for a value.
A one-dimensional polynomial class.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
virtual void print(std::ostream &Os) const