50 namespace AbstractLinAlgPack {
58 const Teuchos::RCP<
const Thyra::LinearOpBase<value_type> > &thyra_linear_op
66 const Teuchos::RCP<
const Thyra::LinearOpBase<value_type> > &thyra_linear_op
70 namespace mmp = MemMngPack;
73 ,
"MatrixOpThyra::initialize(thyra_linear_op): Error!"
77 !adjointSupported, std::invalid_argument
78 ,
"MatrixOpThyra::initialize(thyra_linear_op): Error, the operator opSupported(thyra_linear_op,transp) must return true "
79 "for both values of transp==NOTRANS and transp=TRANS!"
95 return tmp_thyra_linear_op;
114 MatrixOp::mat_mut_ptr_t
124 thyra_linear_op_ = mwo_rhs_thyra.thyra_linear_op_;
Abstract interface for immutable, finite dimensional, coordinate vectors {abstract}.
const VectorSpace & space_cols() const
RTOp_value_type value_type
MatrixOp & operator=(const MatrixOp &mwo_rhs)
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Teuchos::RCP< const Thyra::VectorSpaceBase< value_type > > set_uninitialized()
Set to uninitialized and return smart pointer to the internal Thyra::VectorSpaceBase<value_type> obj...
void Vp_StMtV(VectorMutable *v_lhs, value_type alpha, BLAS_Cpp::Transp trans_rhs1, const Vector &v_rhs2, value_type beta) const
VectorSpaceThyra space_cols_
virtual void initialize(const Teuchos::RCP< const Thyra::LinearOpBase< value_type > > &thyra_linear_op, BLAS_Cpp::Transp thyra_linear_op_trans=BLAS_Cpp::no_trans)
Initalize given a smart pointer to a Thyra::LinearOpBase object.
void get_thyra_vector(const VectorSpaceThyra &thyra_vec_spc, const Vector &vec, Teuchos::RCP< const Thyra::VectorBase< value_type > > *thyra_vec)
void commit_thyra_vector(const VectorSpaceThyra &thyra_vec_spc, VectorMutable *vec, Teuchos::RCP< Thyra::VectorBase< value_type > > *thyra_vec)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
BLAS_Cpp::Transp thyra_linear_op_trans() const
Abstract interface for objects that represent a space for mutable coordinate vectors.
T_To & dyn_cast(T_From &from)
bool Mp_StMtM(MatrixOp *mwo_lhs, value_type alpha, BLAS_Cpp::Transp trans_rhs1, const MatrixOp &mwo_rhs2, BLAS_Cpp::Transp trans_rhs2, value_type beta) const
Works for MultiVectorMutableThyra arguments.
VectorSpaceThyra space_rows_
Transp trans_trans(Transp _trans1, Transp _trans2)
Return the transpose of the transpose argument.
Teuchos::RCP< const Thyra::LinearOpBase< value_type > > set_uninitialized()
Set to uninitialized and return smart pointer to the internal Thyra::VectorBase object.
Base class for all matrices that support basic matrix operations.
MatrixOp adapter subclass for Thyra::LinearOpBase.
void initialize(const Teuchos::RCP< const Thyra::VectorSpaceBase< value_type > > &thyra_vec_spc, const inner_prod_ptr_t &inner_prod=Teuchos::null)
Initalize given a smart pointer to a Thyra::VetorSpace object.
MatrixOpThyra()
Construct to uninitialized.
Abstract interface for mutable coordinate vectors {abstract}.
void free_thyra_vector(const VectorSpaceThyra &thyra_vec_spc, const Vector &vec, Teuchos::RCP< const Thyra::VectorBase< value_type > > *thyra_vec)
BLAS_Cpp::Transp thyra_linear_op_trans_
const Teuchos::RCP< const Thyra::LinearOpBase< value_type > > & thyra_linear_op() const
Return a (converted) smart pointer to the internal smart pointer to the Thyra::VectorBase object...
const VectorSpace & space_rows() const