Functions | |
| template<class Scalar> | |
| void | Thyra::assign (const Ptr< VectorBase< Scalar > > &y, const Scalar &alpha) |
Assign all elements to a scalar: y(i) = alpha, i = 0...y->space()->dim()-1. | |
| template<class Scalar> | |
| void | Thyra::assign (const Ptr< VectorBase< Scalar > > &y, const VectorBase< Scalar > &x) |
Vector assignment: y(i) = x(i), i = 0...y->space()->dim()-1. | |
| template<class Scalar> | |
| void | Thyra::Vp_S (const Ptr< VectorBase< Scalar > > &y, const Scalar &alpha) |
Add a scalar to all elements: y(i) += alpha, i = 0...y->space()->dim()-1. | |
| template<class Scalar> | |
| void | Thyra::Vt_S (const Ptr< VectorBase< Scalar > > &y, const Scalar &alpha) |
Scale all elements by a scalar: y(i) *= alpha, i = 0...y->space()->dim()-1. | |
| template<class Scalar> | |
| void | Thyra::V_StV (const Ptr< VectorBase< Scalar > > &y, const Scalar &alpha, const VectorBase< Scalar > &x) |
Assign scaled vector: y(i) = alpha * x(i), i = 0...y->space()->dim()-1. | |
| template<class Scalar> | |
| void | Thyra::Vp_StV (const Ptr< VectorBase< Scalar > > &y, const Scalar &alpha, const VectorBase< Scalar > &x) |
AXPY: y(i) = alpha * x(i) + y(i), i = 0...y->space()->dim()-1. | |
| template<class Scalar> | |
| void | Thyra::Vp_V (const Ptr< VectorBase< Scalar > > &y, const VectorBase< Scalar > &x, const Scalar &beta=Teuchos::ScalarTraits< Scalar >::one()) |
y(i) = x(i) + beta*y(i), i = 0...y->space()->dim()-1. | |
| template<class Scalar> | |
| void | Thyra::V_V (const Ptr< VectorBase< Scalar > > &y, const VectorBase< Scalar > &x) |
y(i) = x(i), i = 0...y->space()->dim()-1. | |
| template<class Scalar> | |
| void | Thyra::V_S (const Ptr< VectorBase< Scalar > > &y, const Scalar &alpha) |
y(i) = alpha, i = 0...y->space()->dim()-1. | |
| template<class Scalar> | |
| void | Thyra::V_VpV (const Ptr< VectorBase< Scalar > > &z, const VectorBase< Scalar > &x, const VectorBase< Scalar > &y) |
z(i) = x(i) + y(i), i = 0...z->space()->dim()-1. | |
| template<class Scalar> | |
| void | Thyra::V_VmV (const Ptr< VectorBase< Scalar > > &z, const VectorBase< Scalar > &x, const VectorBase< Scalar > &y) |
z(i) = x(i) - y(i), i = 0...z->space()->dim()-1. | |
| template<class Scalar> | |
| void | Thyra::V_StVpV (const Ptr< VectorBase< Scalar > > &z, const Scalar &alpha, const VectorBase< Scalar > &x, const VectorBase< Scalar > &y) |
z(i) = alpha*x(i) + y(i), i = 0...z->space()->dim()-1. | |
| template<class Scalar> | |
| void | Thyra::V_VpStV (const Ptr< VectorBase< Scalar > > &z, const VectorBase< Scalar > &x, const Scalar &alpha, const VectorBase< Scalar > &y) |
z(i) = x(i) + alpha*y(i), i = 0...z->space()->dim()-1. | |
| template<class Scalar> | |
| void | Thyra::V_StVpStV (const Ptr< VectorBase< Scalar > > &z, const Scalar &alpha, const VectorBase< Scalar > &x, const Scalar &beta, const VectorBase< Scalar > &y) |
z(i) = alpha*x(i) + beta*y(i), i = 0...z->space()->dim()-1. | |
The convention used here is described in the short note A Simple Convention for the Specification of Linear Algebra Function Prototypes in C++ .
|
||||||||||||||||
|
Assign all elements to a scalar:
|
|
||||||||||||||||
|
Vector assignment:
|
|
||||||||||||||||
|
Add a scalar to all elements:
|
|
||||||||||||||||
|
Scale all elements by a scalar:
This takes care of the special cases of |
|
||||||||||||||||||||
|
Assign scaled vector:
|
|
||||||||||||||||||||
|
AXPY:
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||
|
|
1.3.9.1