42 #ifndef THYRA_POLYNOMIAL_VECTOR_TRAITS_HPP 43 #define THYRA_POLYNOMIAL_VECTOR_TRAITS_HPP 45 #include "Thyra_VectorBase.hpp" 46 #include "Teuchos_PolynomialTraits.hpp" 47 #include "Thyra_VectorStdOps.hpp" 48 #include "Thyra_MultiVectorStdOps.hpp" 58 template <
typename Scalar>
59 class PolynomialTraits<
Thyra::VectorBase<Scalar> > {
75 Thyra::copy(x, Teuchos::ptr(y));
80 Thyra::assign(Teuchos::ptr(y), alpha);
86 Thyra::Vp_V(Teuchos::ptr(y), x, beta);
93 #endif // THYRA_POLYNOMIAL_VECTOR_TRAITS_HPP Thyra::VectorBase< Scalar > coeff_type
Typename of coefficients.
static Teuchos::RCP< coeff_type > clone(const coeff_type &c)
Clone a coefficient.
Scalar scalar_type
Typename of scalars.
Abstract interface for finite-dimensional dense vectors.
static void update(coeff_type *y, const coeff_type &x, const scalar_type &beta)
y = x + beta*y
static void assign(coeff_type *y, const scalar_type &alpha)
Assign a scalar to a coefficient.
static void copy(const coeff_type &x, coeff_type *y)
Copy a coefficient.
virtual RCP< VectorBase< Scalar > > clone_v() const =0
Returns a cloned copy of *this vector.