AbstractLinAlgPack::InnerProductThyra Class Reference

Implements the inner product using Thyra::VectorSpaceBase::scalarProd(). More...

#include <AbstractLinAlgPack_InnerProductThyra.hpp>

Inheritance diagram for AbstractLinAlgPack::InnerProductThyra:

[legend]
List of all members.

Constructors / Initializers

 InnerProductThyra ()
 Construct to uninitialized.
 InnerProductThyra (const Teuchos::RCP< const Thyra::VectorSpaceBase< value_type > > &thyra_vec_spc)
 Calls this->initialize().
void initialize (const Teuchos::RCP< const Thyra::VectorSpaceBase< value_type > > &thyra_vec_spc)
 Initalize given a smart pointer to a Thyra::VetorSpace object.
Teuchos::RCP< const Thyra::VectorSpaceBase<
value_type > > 
set_uninitialized ()
 Set to uninitialized and return smart pointer to the internal Thyra::VectorSpaceBase<value_type> object.
const Teuchos::RCP< const
Thyra::VectorSpaceBase< value_type > > & 
thyra_vec_spc () const
 Return a (converted) smart pointer to the internal smart pointer to the Thyra::VectorSpaceBase<value_type> object.

Overridden from InnerProduct

value_type inner_prod (const Vector &v1, const Vector &v2) const
 

Private Attributes

const Thyra::VectorSpaceBase<
value_type > * 
thyra_vector_space

Detailed Description

Implements the inner product using Thyra::VectorSpaceBase::scalarProd().

Definition at line 39 of file AbstractLinAlgPack_InnerProductThyra.hpp.


Constructor & Destructor Documentation

AbstractLinAlgPack::InnerProductThyra::InnerProductThyra (  ) 

Construct to uninitialized.

Postconditioins:

Definition at line 42 of file AbstractLinAlgPack_InnerProductThyra.cpp.

AbstractLinAlgPack::InnerProductThyra::InnerProductThyra ( const Teuchos::RCP< const Thyra::VectorSpaceBase< value_type > > &  thyra_vec_spc  ) 

Calls this->initialize().

Definition at line 45 of file AbstractLinAlgPack_InnerProductThyra.cpp.


Member Function Documentation

void AbstractLinAlgPack::InnerProductThyra::initialize ( const Teuchos::RCP< const Thyra::VectorSpaceBase< value_type > > &  thyra_vec_spc  ) 

Initalize given a smart pointer to a Thyra::VetorSpace object.

Parameters:
thyra_vec_spc [in] Smart pointer to Thyra vector
Preconditioins:

Postconditioins:

Definition at line 52 of file AbstractLinAlgPack_InnerProductThyra.cpp.

Teuchos::RCP< const Thyra::VectorSpaceBase< value_type > > AbstractLinAlgPack::InnerProductThyra::set_uninitialized (  ) 

Set to uninitialized and return smart pointer to the internal Thyra::VectorSpaceBase<value_type> object.

Postconditioins:

Definition at line 64 of file AbstractLinAlgPack_InnerProductThyra.cpp.

const Teuchos::RCP< const Thyra::VectorSpaceBase< value_type > > & AbstractLinAlgPack::InnerProductThyra::thyra_vec_spc (  )  const [inline]

Return a (converted) smart pointer to the internal smart pointer to the Thyra::VectorSpaceBase<value_type> object.

If this->thyra_vec_spc().count() == 1, then this has sole ownership of the *this->thyra_vec_spc() object.

Definition at line 105 of file AbstractLinAlgPack_InnerProductThyra.hpp.

value_type AbstractLinAlgPack::InnerProductThyra::inner_prod ( const Vector v1,
const Vector v2 
) const [virtual]

Implements AbstractLinAlgPack::InnerProduct.

Definition at line 73 of file AbstractLinAlgPack_InnerProductThyra.cpp.


Member Data Documentation

const Thyra::VectorSpaceBase<value_type>* AbstractLinAlgPack::InnerProductThyra::thyra_vector_space [private]

Definition at line 93 of file AbstractLinAlgPack_InnerProductThyra.hpp.


The documentation for this class was generated from the following files:
Generated on Tue Oct 20 12:54:09 2009 for MOOCHO (Single Doxygen Collection) by doxygen 1.4.7