Teuchos::PolynomialTraits< Scalar > Class Template Reference

Traits class for polynomial coefficients in Teuchos::Polynomial. More...

#include <Teuchos_PolynomialTraits.hpp>

List of all members.

Public Types

typedef Scalar coeff_type
 Typename of coefficients.
typedef Scalar scalar_type
 Typename of scalars.

Static Public Member Functions

Teuchos::RefCountPtr< coeff_typeclone (const coeff_type &c)
 Clone a coefficient.
void copy (const coeff_type &x, coeff_type *y)
 Copy a coefficient.
void assign (coeff_type *y, const scalar_type &alpha)
 Assign a scalar to a coefficient.
void update (coeff_type *y, const coeff_type &x, const scalar_type &beta)
 y = x + beta*y


Detailed Description

template<typename Scalar>
class Teuchos::PolynomialTraits< Scalar >

Traits class for polynomial coefficients in Teuchos::Polynomial.

This class provides traits for implementing Teuchos::Polynomial. The default template definition here will work for any scalar type. Any other coefficient type for Teuchos::Polynomial should provide a specialization of this traits class for that type that mirrors the default definition below.

Definition at line 45 of file Teuchos_PolynomialTraits.hpp.


Member Typedef Documentation

template<typename Scalar>
typedef Scalar Teuchos::PolynomialTraits< Scalar >::coeff_type
 

Typename of coefficients.

Definition at line 49 of file Teuchos_PolynomialTraits.hpp.

template<typename Scalar>
typedef Scalar Teuchos::PolynomialTraits< Scalar >::scalar_type
 

Typename of scalars.

Definition at line 52 of file Teuchos_PolynomialTraits.hpp.


Member Function Documentation

template<typename Scalar>
Teuchos::RefCountPtr<coeff_type> Teuchos::PolynomialTraits< Scalar >::clone const coeff_type c  )  [inline, static]
 

Clone a coefficient.

Definition at line 55 of file Teuchos_PolynomialTraits.hpp.

template<typename Scalar>
void Teuchos::PolynomialTraits< Scalar >::copy const coeff_type x,
coeff_type y
[inline, static]
 

Copy a coefficient.

Definition at line 60 of file Teuchos_PolynomialTraits.hpp.

template<typename Scalar>
void Teuchos::PolynomialTraits< Scalar >::assign coeff_type y,
const scalar_type alpha
[inline, static]
 

Assign a scalar to a coefficient.

Definition at line 65 of file Teuchos_PolynomialTraits.hpp.

template<typename Scalar>
void Teuchos::PolynomialTraits< Scalar >::update coeff_type y,
const coeff_type x,
const scalar_type beta
[inline, static]
 

y = x + beta*y

Definition at line 70 of file Teuchos_PolynomialTraits.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Sep 18 12:30:32 2008 for Teuchos - Trilinos Tools Package by doxygen 1.3.9.1