46 #include "AbstractLinAlgPack_InnerProductThyra.hpp"
47 #include "AbstractLinAlgPack_VectorMutableThyra.hpp"
48 #include "Teuchos_Assert.hpp"
49 #include "Teuchos_dyn_cast.hpp"
51 namespace AbstractLinAlgPack {
71 ,
"InnerProductThyra::initialize(thyra_vec_spc): Error!"
80 thyra_vec_spc_ = Teuchos::null;
81 return tmp_thyra_vec_spc;
89 return thyra_vec_spc_->scalarProd(
90 *dyn_cast<const VectorMutableThyra>(v1).thyra_vec()
91 ,*dyn_cast<const VectorMutableThyra>(v1).thyra_vec()
InnerProductThyra()
Construct to uninitialized.
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_...
value_type inner_prod(const Vector &v1, const Vector &v2) const
RCP< const Thyra::VectorSpaceBase< value_type > > set_uninitialized()
Set to uninitialized and return smart pointer to the internal Thyra::VectorSpaceBase<value_type> obj...
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
T_To & dyn_cast(T_From &from)
void initialize(const RCP< const Thyra::VectorSpaceBase< value_type > > &thyra_vec_spc)
Initalize given a smart pointer to a Thyra::VetorSpace object.