42#ifndef TEUCHOS_POLYNOMIAL_DECL_HPP
43#define TEUCHOS_POLYNOMIAL_DECL_HPP
45#include "Teuchos_Describable.hpp"
47#include "Teuchos_PolynomialTraits.hpp"
68 template <
typename CoeffT>
85 Polynomial(
unsigned int deg,
const CoeffT& cloneCoeff,
86 unsigned int reserve = 0);
96 Polynomial(
unsigned int deg,
unsigned int reserve = 0);
138 CoeffT* x, CoeffT* xdot = NULL)
const;
160 std::vector< Teuchos::RCP<CoeffT> >
coeff;
Reference-counted pointer class and non-member templated function implementations.
Base class for all objects that can describe themselves.
Scalar scalar_type
Typename of scalars.
Lightweight container class to represent a simple polynomial.
void setCoefficient(unsigned int i, const CoeffT &v)
Set coefficient i to c.
Teuchos::RCP< CoeffT > getCoefficient(unsigned int i)
Return ref-count pointer to coefficient i.
Teuchos::PolynomialTraits< coeff_type >::scalar_type scalar_type
Typename of scalars.
unsigned int sz
Size of polynomial (may be > d)
unsigned int degree() const
Return degree of polynomial.
CoeffT coeff_type
Typename of coefficients.
void evaluate(typename Teuchos::Polynomial< CoeffT >::scalar_type &t, CoeffT *x, CoeffT *xdot=NULL) const
Evaluate polynomial and possibly its derivative at time t.
void setDegree(unsigned int deg)
Set degree of polynomial to deg.
std::vector< Teuchos::RCP< CoeffT > > coeff
Vector of polynomial coefficients.
unsigned int d
Degree of polynomial.
void setCoefficientPtr(unsigned int i, const Teuchos::RCP< CoeffT > &c_ptr)
Set pointer for coefficient i to c_ptr. DANGEROUS!
Smart reference counting pointer class for automatic garbage collection.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...