Thyra::EuclideanScalarProd< Scalar > Class Template Reference
[Basic Support Subclasses Abstracting Application-Specific Scalar Products]

Concrete implementation of a scalar product for a Euclidean vector space (i.e. using the dot product). More...

#include <Thyra_EuclideanScalarProdDecl.hpp>

Inheritance diagram for Thyra::EuclideanScalarProd< Scalar >:

[legend]
List of all members.

Overridden from ScalarProdBase

bool isEuclidean () const
 Returns true.
void scalarProds (const MultiVectorBase< Scalar > &X, const MultiVectorBase< Scalar > &Y, Scalar scalar_prods[]) const
 Simply calls dots(X,Y,scalar_prods).
void apply (const EuclideanLinearOpBase< Scalar > &M, const ETransp M_trans, const MultiVectorBase< Scalar > &X, MultiVectorBase< Scalar > *Y, const Scalar alpha, const Scalar beta) const
 Simply calls M.euclideanApply(M_trans,X,Y,alpha,beta).

Detailed Description

template<class Scalar>
class Thyra::EuclideanScalarProd< Scalar >

Concrete implementation of a scalar product for a Euclidean vector space (i.e. using the dot product).

Because this subclass is implemented using an RTOp, it will work with any VectorBase or MultiVectorBase implementation no matter what.

Examples:

test_scalar_product.cpp.

Definition at line 46 of file Thyra_EuclideanScalarProdDecl.hpp.


Member Function Documentation

template<class Scalar>
bool Thyra::EuclideanScalarProd< Scalar >::isEuclidean  )  const [virtual]
 

Returns true.

Reimplemented from Thyra::ScalarProdBase< Scalar >.

Definition at line 40 of file Thyra_EuclideanScalarProd.hpp.

template<class Scalar>
void Thyra::EuclideanScalarProd< Scalar >::scalarProds const MultiVectorBase< Scalar > &  X,
const MultiVectorBase< Scalar > &  Y,
Scalar  scalar_prods[]
const [virtual]
 

Simply calls dots(X,Y,scalar_prods).

Implements Thyra::ScalarProdBase< Scalar >.

Definition at line 46 of file Thyra_EuclideanScalarProd.hpp.

template<class Scalar>
void Thyra::EuclideanScalarProd< Scalar >::apply const EuclideanLinearOpBase< Scalar > &  M,
const ETransp  M_trans,
const MultiVectorBase< Scalar > &  X,
MultiVectorBase< Scalar > *  Y,
const Scalar  alpha,
const Scalar  beta
const [virtual]
 

Simply calls M.euclideanApply(M_trans,X,Y,alpha,beta).

Implements Thyra::ScalarProdBase< Scalar >.

Definition at line 52 of file Thyra_EuclideanScalarProd.hpp.


The documentation for this class was generated from the following files:
Generated on Thu Sep 18 12:32:34 2008 for Thyra Operator/Vector Support by doxygen 1.3.9.1