10#ifndef THYRA_POLYNOMIAL_VECTOR_TRAITS_HPP
11#define THYRA_POLYNOMIAL_VECTOR_TRAITS_HPP
13#include "Thyra_VectorBase.hpp"
14#include "Teuchos_PolynomialTraits.hpp"
15#include "Thyra_VectorStdOps.hpp"
16#include "Thyra_MultiVectorStdOps.hpp"
26 template <
typename Scalar>
static void copy(const coeff_type &x, coeff_type *y)
Copy a coefficient.
Thyra::VectorBase< Scalar > coeff_type
Typename of coefficients.
Scalar scalar_type
Typename of scalars.
static void update(coeff_type *y, const coeff_type &x, const scalar_type &beta)
y = x + beta*y
static Teuchos::RCP< coeff_type > clone(const coeff_type &c)
Clone a coefficient.
static void assign(coeff_type *y, const scalar_type &alpha)
Assign a scalar to a coefficient.
void assign(const Ptr< MultiVectorBase< Scalar > > &V, Scalar alpha)
V = alpha.
void Vp_V(const Ptr< MultiVectorBase< Scalar > > &Z, const MultiVectorBase< Scalar > &X)
Z(i,j) += X(i,j), i = 0...Z->range()->dim()-1, j = 0...Z->domain()->dim()-1.
Abstract interface for finite-dimensional dense vectors.
virtual RCP< VectorBase< Scalar > > clone_v() const =0
Returns a seprate cloned copy of *this vector with the same values but different storage.
void copy(const VectorBase< Scalar > &x, const Ptr< VectorBase< Scalar > > &y)
Vector assignment: y(i) = x(i), i = 0...y->space()->dim()-1.