MOOCHO (Single Doxygen Collection)
Version of the Day
|
VectorSpace
adapter subclass for Thyra::VectorSpaceBase<value_type>
.
More...
#include <AbstractLinAlgPack_VectorSpaceThyra.hpp>
Private Attributes | |
const Thyra::VectorSpaceBase < value_type > * | thyra_vector_space |
Constructors / initializers | |
VectorSpaceThyra () | |
Construct to uninitialized. More... | |
VectorSpaceThyra (const Teuchos::RCP< const Thyra::VectorSpaceBase< value_type > > &thyra_vec_spc, const inner_prod_ptr_t &inner_prod=Teuchos::null) | |
Calls this->initialize() . More... | |
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. More... | |
Teuchos::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 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. More... | |
Overridden from VectorSpace | |
space_ptr_t | clone () const |
bool | is_compatible (const VectorSpace &vec_spc) const |
bool | is_in_core () const |
index_type | dim () const |
vec_mut_ptr_t | create_member () const |
space_fcty_ptr_t | small_vec_spc_fcty () const |
multi_vec_mut_ptr_t | create_members (size_type num_vecs) const |
Additional Inherited Members | |
Public Types inherited from AbstractLinAlgPack::VectorSpace | |
typedef Teuchos::RCP< const InnerProduct > | inner_prod_ptr_t |
typedef Teuchos::RCP< const VectorSpace > | space_ptr_t |
typedef Teuchos::RCP< const VectorSpaceFactory > | space_fcty_ptr_t |
typedef Teuchos::RCP < VectorMutable > | vec_mut_ptr_t |
typedef Teuchos::RCP < MultiVectorMutable > | multi_vec_mut_ptr_t |
Public Member Functions inherited from AbstractLinAlgPack::VectorSpace | |
virtual space_ptr_t | sub_space (const Range1D &rng) const |
Create a transient sub-space of the current vector space. More... | |
space_ptr_t | sub_space (const index_type il, const index_type iu) const |
Inlined to call this->sub_space(Range1D(il,iu)) . More... | |
virtual space_ptr_t | space (const GenPermMatrixSlice &P, BLAS_Cpp::Transp P_trans) const |
Create a vector space for vector to gather the elements into. More... | |
VectorSpace (const inner_prod_ptr_t &inner_prod=Teuchos::null) | |
Calls inner_prod() More... | |
virtual void | inner_prod (const inner_prod_ptr_t &inner_prod) |
Initialize with an inner product object. More... | |
virtual const inner_prod_ptr_t | inner_prod () const |
Return the smart pointer to the inner product strategy object. More... | |
virtual vec_mut_ptr_t | create_member (const value_type &alpha) const |
Create a vector member from the vector space initialized to a scalar. More... | |
obj_ptr_t | create () const |
Just calls this->create_member() by default! More... | |
Public Member Functions inherited from Teuchos::AbstractFactory< VectorMutable > | |
virtual | ~AbstractFactory () |
VectorSpace
adapter subclass for Thyra::VectorSpaceBase<value_type>
.
Note that the default copy constructor and assignment operators are allowed which yield in shallow copy, not deep copy.
Definition at line 55 of file AbstractLinAlgPack_VectorSpaceThyra.hpp.
AbstractLinAlgPack::VectorSpaceThyra::VectorSpaceThyra | ( | ) |
Construct to uninitialized.
Postconditioins:
this->thyra_vec().get() == NULL
Definition at line 56 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.
AbstractLinAlgPack::VectorSpaceThyra::VectorSpaceThyra | ( | const Teuchos::RCP< const Thyra::VectorSpaceBase< value_type > > & | thyra_vec_spc, |
const inner_prod_ptr_t & | inner_prod = Teuchos::null |
||
) |
Calls this->initialize()
.
Definition at line 59 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.
void AbstractLinAlgPack::VectorSpaceThyra::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.
thyra_vec_spc | [in] Smart pointer to Thyra vector this will adapt. |
inner_prod | [in] Smart pointer to an inner product. If inner_prod.get()==NULL then a InnerProductThyra object will be used which will point to this. |
Preconditioins:
thyra_vec_spc.get() != NULL
(throw std::invalid_argument
) Postconditioins:
this->thyra_vec_spc().get() == thyra_vec_spc.get()
inner_prod.get()!=NULL
] this->inner_prod().get()==inner_prod.get()
inner_prod.get()==NULL
] dynamic_cast<const InnerProductThyra*>(this->inner_prod().get()).thyra_vec_spc().get()==thyra_vec_spc.get()
Definition at line 67 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.
Teuchos::RCP< const Thyra::VectorSpaceBase< value_type > > AbstractLinAlgPack::VectorSpaceThyra::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 85 of file AbstractLinAlgPack_VectorSpaceThyra.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 148 of file AbstractLinAlgPack_VectorSpaceThyra.hpp.
|
virtual |
Implements AbstractLinAlgPack::VectorSpace.
Definition at line 95 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.
|
virtual |
Implements AbstractLinAlgPack::VectorSpace.
Definition at line 100 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.
|
virtual |
Reimplemented from AbstractLinAlgPack::VectorSpace.
Definition at line 111 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.
|
virtual |
Implements AbstractLinAlgPack::VectorSpace.
Definition at line 116 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.
|
virtual |
Implements AbstractLinAlgPack::VectorSpace.
Definition at line 122 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.
|
virtual |
Reimplemented from AbstractLinAlgPack::VectorSpace.
Definition at line 128 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.
|
virtual |
Reimplemented from AbstractLinAlgPack::VectorSpace.
Definition at line 134 of file AbstractLinAlgPack_VectorSpaceThyra.cpp.
|
private |
Definition at line 136 of file AbstractLinAlgPack_VectorSpaceThyra.hpp.