MOOCHO/Thyra Adapter Software
Version of the Day
|
Implements the inner product using Thyra::VectorSpaceBase::scalarProd()
.
More...
#include <AbstractLinAlgPack_InnerProductThyra.hpp>
Constructors / Initializers | |
InnerProductThyra () | |
Construct to uninitialized. More... | |
InnerProductThyra (const RCP< const Thyra::VectorSpaceBase< value_type > > &thyra_vec_spc) | |
Calls this->initialize() . More... | |
void | initialize (const RCP< const Thyra::VectorSpaceBase< value_type > > &thyra_vec_spc) |
Initalize given a smart pointer to a Thyra::VetorSpace object. More... | |
RCP< const Thyra::VectorSpaceBase < value_type > > | set_uninitialized () |
Set to uninitialized and return smart pointer to the internal Thyra::VectorSpaceBase<value_type> object. More... | |
const 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. More... | |
Overridden from InnerProduct | |
value_type | inner_prod (const Vector &v1, const Vector &v2) const |
Implements the inner product using Thyra::VectorSpaceBase::scalarProd()
.
Definition at line 55 of file AbstractLinAlgPack_InnerProductThyra.hpp.
AbstractLinAlgPack::InnerProductThyra::InnerProductThyra | ( | ) |
Construct to uninitialized.
Postconditioins:
this->thyra_vec().get() == NULL
Definition at line 55 of file AbstractLinAlgPack_InnerProductThyra.cpp.
AbstractLinAlgPack::InnerProductThyra::InnerProductThyra | ( | const RCP< const Thyra::VectorSpaceBase< value_type > > & | thyra_vec_spc | ) |
Calls this->initialize()
.
void AbstractLinAlgPack::InnerProductThyra::initialize | ( | const RCP< const Thyra::VectorSpaceBase< value_type > > & | thyra_vec_spc | ) |
Initalize given a smart pointer to a Thyra::VetorSpace
object.
thyra_vec_spc | [in] Smart pointer to Thyra vector |
Preconditioins:
thyra_vec_spc.get() != NULL
(throw std::invalid_argument
) Postconditioins:
this->thyra_vec_spc().get() == thyra_vec_spc.get()
Definition at line 65 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:
this->thyra_vec_spc().get() == NULL
Definition at line 77 of file AbstractLinAlgPack_InnerProductThyra.cpp.
|
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 131 of file AbstractLinAlgPack_InnerProductThyra.hpp.
|
virtual |
Implements AbstractLinAlgPack::InnerProduct.
Definition at line 86 of file AbstractLinAlgPack_InnerProductThyra.cpp.