Thyra Version of the Day
Loading...
Searching...
No Matches
List of all members

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

#include <Thyra_EuclideanScalarProd_decl.hpp>

Inheritance diagram for Thyra::EuclideanScalarProd< Scalar >:
Inheritance graph
[legend]

Overridden from ScalarProdBase

virtual bool isEuclideanImpl () const
 Returns true.
 
virtual void scalarProdsImpl (const MultiVectorBase< Scalar > &X, const MultiVectorBase< Scalar > &Y, const ArrayView< Scalar > &scalarProds) const
 Simply calls dots(X,Y,scalar_prods).
 

Additional Inherited Members

- Public Member Functions inherited from Thyra::ScalarProdBase< Scalar >
bool isEuclidean () const
 Return if this is a Euclidean (identity) scalar product is the same as the dot product.
 
Scalar scalarProd (const VectorBase< Scalar > &x, const VectorBase< Scalar > &y) const
 Return the scalar product of two vectors in the vector space.
 
void scalarProds (const MultiVectorBase< Scalar > &X, const MultiVectorBase< Scalar > &Y, const ArrayView< Scalar > &scalarProds_out) const
 Return the scalar product of each column in two multi-vectors in the vector space.
 
RCP< const LinearOpBase< Scalar > > getLinearOp () const
 Return a linear operator representing the scalar product Q.
 
- Protected Member Functions inherited from Thyra::ScalarProdBase< Scalar >
virtual Scalar scalarProdImpl (const VectorBase< Scalar > &x, const VectorBase< Scalar > &y) const
 Default implementation calls scalarProdsImpl().
 
virtual RCP< const LinearOpBase< Scalar > > getLinearOpImpl () const
 

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.

Definition at line 61 of file Thyra_EuclideanScalarProd_decl.hpp.

Member Function Documentation

◆ isEuclideanImpl()

template<class Scalar >
bool Thyra::EuclideanScalarProd< Scalar >::isEuclideanImpl ( ) const
protectedvirtual

Returns true.

Implements Thyra::ScalarProdBase< Scalar >.

Definition at line 54 of file Thyra_EuclideanScalarProd_def.hpp.

◆ scalarProdsImpl()

template<class Scalar >
void Thyra::EuclideanScalarProd< Scalar >::scalarProdsImpl ( const MultiVectorBase< Scalar > & X,
const MultiVectorBase< Scalar > & Y,
const ArrayView< Scalar > & scalarProds ) const
protectedvirtual

Simply calls dots(X,Y,scalar_prods).

Implements Thyra::ScalarProdBase< Scalar >.

Reimplemented in Thyra::TpetraEuclideanScalarProd< Scalar, LocalOrdinal, GlobalOrdinal, Node >.

Definition at line 61 of file Thyra_EuclideanScalarProd_def.hpp.


The documentation for this class was generated from the following files: