Thyra Package Browser (Single Doxygen Collection) Version of the Day
Private Attributes | Related Functions
Thyra::DiagonalScalarProd< Scalar > Class Template Reference

Concrete implementation of a scalar product using a diagonal vector. More...

#include <Thyra_DiagonalScalarProd_decl.hpp>

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

List of all members.

Private Attributes

RCP< const VectorBase< Scalar > > s_diag_

Related Functions

(Note that these are not member functions.)

template<class Scalar >
RCP< DiagonalScalarProd< Scalar > > diagonalScalarProd (const RCP< const VectorBase< Scalar > > &s_diag)
 Nonmember constructor.

Consturctors/Initializers/Accessors

 DiagonalScalarProd ()
 
void initialize (const RCP< const VectorBase< Scalar > > &s_diag)
 

Overridden protected virtual functions from ScalarProdBase

virtual bool isEuclideanImpl () const
 Returns false.
virtual void scalarProdsImpl (const MultiVectorBase< Scalar > &X, const MultiVectorBase< Scalar > &Y, const ArrayView< Scalar > &scalarProds_out) const
 
RCP< const LinearOpBase< Scalar > > getLinearOpImpl () const
 

Detailed Description

template<class Scalar>
class Thyra::DiagonalScalarProd< Scalar >

Concrete implementation of a scalar product using a diagonal vector.

This test class really shows how to create an application-defined scalar product.

Definition at line 19 of file Thyra_DiagonalScalarProd_decl.hpp.


Constructor & Destructor Documentation

template<class Scalar >
Thyra::DiagonalScalarProd< Scalar >::DiagonalScalarProd ( )

Definition at line 18 of file Thyra_DiagonalScalarProd_def.hpp.


Member Function Documentation

template<class Scalar >
void Thyra::DiagonalScalarProd< Scalar >::initialize ( const RCP< const VectorBase< Scalar > > &  s_diag)

Definition at line 23 of file Thyra_DiagonalScalarProd_def.hpp.

template<class Scalar >
bool Thyra::DiagonalScalarProd< Scalar >::isEuclideanImpl ( ) const [protected, virtual]

Returns false.

Implements Thyra::ScalarProdBase< Scalar >.

Definition at line 34 of file Thyra_DiagonalScalarProd_def.hpp.

template<class Scalar >
void Thyra::DiagonalScalarProd< Scalar >::scalarProdsImpl ( const MultiVectorBase< Scalar > &  X,
const MultiVectorBase< Scalar > &  Y,
const ArrayView< Scalar > &  scalarProds_out 
) const [protected, virtual]
template<class Scalar >
RCP< const LinearOpBase< Scalar > > Thyra::DiagonalScalarProd< Scalar >::getLinearOpImpl ( ) const [protected, virtual]

Reimplemented from Thyra::ScalarProdBase< Scalar >.

Definition at line 97 of file Thyra_DiagonalScalarProd_def.hpp.


Friends And Related Function Documentation

template<class Scalar >
RCP< DiagonalScalarProd< Scalar > > diagonalScalarProd ( const RCP< const VectorBase< Scalar > > &  s_diag) [related]

Nonmember constructor.

Definition at line 64 of file Thyra_DiagonalScalarProd_decl.hpp.


Member Data Documentation

template<class Scalar >
RCP<const VectorBase<Scalar> > Thyra::DiagonalScalarProd< Scalar >::s_diag_ [private]

Definition at line 53 of file Thyra_DiagonalScalarProd_decl.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines