Thyra
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
core
src
support
operator_vector
client_support
Thyra_PolynomialVectorTraits.hpp
1
// @HEADER
2
// *****************************************************************************
3
// Thyra: Interfaces and Support for Abstract Numerical Algorithms
4
//
5
// Copyright 2004 NTESS and the Thyra contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#ifndef THYRA_POLYNOMIAL_VECTOR_TRAITS_HPP
11
#define THYRA_POLYNOMIAL_VECTOR_TRAITS_HPP
12
13
#include "Thyra_VectorBase.hpp"
14
#include "Teuchos_PolynomialTraits.hpp"
15
#include "Thyra_VectorStdOps.hpp"
16
#include "Thyra_MultiVectorStdOps.hpp"
17
18
namespace
Teuchos
{
19
21
26
template
<
typename
Scalar>
27
class
PolynomialTraits
< Thyra::VectorBase<Scalar> > {
28
public
:
29
31
typedef
Thyra::VectorBase<Scalar>
coeff_type
;
32
34
typedef
Scalar
scalar_type
;
35
37
static
inline
Teuchos::RCP<coeff_type>
clone
(
const
coeff_type
& c) {
38
return
c.
clone_v
();
39
}
40
42
static
inline
void
copy
(
const
coeff_type
& x,
coeff_type
* y) {
43
Thyra::copy
(x, Teuchos::ptr(y));
44
}
45
47
static
inline
void
assign
(
coeff_type
* y,
const
scalar_type
& alpha) {
48
Thyra::assign
(Teuchos::ptr(y), alpha);
49
}
50
52
static
inline
void
update
(
coeff_type
* y,
const
coeff_type
& x,
53
const
scalar_type
& beta) {
54
Thyra::Vp_V
(Teuchos::ptr(y), x, beta);
55
}
56
57
};
// class PolynomialTraits< Thyra::VectorBase<Scalar> >
58
59
}
// end namespace Teuchos
60
61
#endif
// THYRA_POLYNOMIAL_VECTOR_TRAITS_HPP
Teuchos::PolynomialTraits< Thyra::VectorBase< Scalar > >::copy
static void copy(const coeff_type &x, coeff_type *y)
Copy a coefficient.
Definition
Thyra_PolynomialVectorTraits.hpp:42
Teuchos::PolynomialTraits< Thyra::VectorBase< Scalar > >::coeff_type
Thyra::VectorBase< Scalar > coeff_type
Typename of coefficients.
Definition
Thyra_PolynomialVectorTraits.hpp:31
Teuchos::PolynomialTraits< Thyra::VectorBase< Scalar > >::scalar_type
Scalar scalar_type
Typename of scalars.
Definition
Thyra_PolynomialVectorTraits.hpp:34
Teuchos::PolynomialTraits< Thyra::VectorBase< Scalar > >::update
static void update(coeff_type *y, const coeff_type &x, const scalar_type &beta)
y = x + beta*y
Definition
Thyra_PolynomialVectorTraits.hpp:52
Teuchos::PolynomialTraits< Thyra::VectorBase< Scalar > >::clone
static Teuchos::RCP< coeff_type > clone(const coeff_type &c)
Clone a coefficient.
Definition
Thyra_PolynomialVectorTraits.hpp:37
Teuchos::PolynomialTraits< Thyra::VectorBase< Scalar > >::assign
static void assign(coeff_type *y, const scalar_type &alpha)
Assign a scalar to a coefficient.
Definition
Thyra_PolynomialVectorTraits.hpp:47
Teuchos::PolynomialTraits
Teuchos::RCP
Thyra::MultiVectorBase::assign
void assign(const Ptr< MultiVectorBase< Scalar > > &V, Scalar alpha)
V = alpha.
Definition
Thyra_MultiVectorStdOps_def.hpp:122
Thyra::MultiVectorBase::Vp_V
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.
Definition
Thyra_MultiVectorStdOps_def.hpp:230
Thyra::VectorBase
Abstract interface for finite-dimensional dense vectors.
Definition
Thyra_VectorBase.hpp:115
Thyra::VectorBase::clone_v
virtual RCP< VectorBase< Scalar > > clone_v() const =0
Returns a seprate cloned copy of *this vector with the same values but different storage.
Thyra::VectorBase::copy
void copy(const VectorBase< Scalar > &x, const Ptr< VectorBase< Scalar > > &y)
Vector assignment: y(i) = x(i), i = 0...y->space()->dim()-1.
Definition
Thyra_VectorStdOps_def.hpp:143
Teuchos
Generated by
1.17.0