42 #ifndef VECTOR_WITH_OP_MUTABLE_DENSE_H
43 #define VECTOR_WITH_OP_MUTABLE_DENSE_H
45 #include "AbstractLinAlgPack_VectorSpaceSerial.hpp"
46 #include "AbstractLinAlgPack_VectorMutable.hpp"
47 #include "AbstractLinAlgPack_VectorApplyOpSerialBase.hpp"
48 #include "DenseLinAlgPack_DVectorClass.hpp"
50 #include "ReleaseResource.hpp"
52 namespace AbstractLinAlgPack {
100 const size_type
dim = 0
154 const RTOpPack::RTOp& op
155 ,
const size_t num_vecs,
const Vector* vecs[]
158 ,
const index_type first_ele,
const index_type sub_dim,
const index_type global_offset
161 index_type
dim()
const;
163 value_type
get_ele(index_type i)
const;
181 void set_ele( index_type i, value_type val );
248 #endif // VECTOR_WITH_OP_MUTABLE_DENSE_H
DVector "Adaptor" subclass for DenseLinAlgPack::DVectorSlice or DenseLinAlgPack::DVector objects...
const release_resource_ptr_t & vec_release() const
Return a RCP<> pointer to the object that will release the associated resource.
Abstract interface for immutable, finite dimensional, coordinate vectors {abstract}.
const VectorSpace & space() const
VectorMutableDense * operator&()
Hack.
vec_mut_ptr_t sub_view(const Range1D &rng)
const DVectorSlice get_vec() const
Return a const dense vector.
void commit_sub_vector(RTOpPack::MutableSubVector *sub_vec)
void apply_op(const RTOpPack::RTOp &op, const size_t num_vecs, const Vector *vecs[], const size_t num_targ_vecs, VectorMutable *targ_vecs[], RTOpPack::ReductTarget *reduct_obj, const index_type first_ele, const index_type sub_dim, const index_type global_offset) const
VectorMutableDense(const size_type dim=0)
Calls this->initialize(dim).
VectorMutable & operator=(value_type alpha)
virtual void has_changed() const
Must be called by any vector subclass that modifies this vector object!
Abstract interface for objects that represent a space for mutable coordinate vectors.
void set_sub_vector(const RTOpPack::SparseSubVector &sub_vec)
void initialize(const size_type dim)
Call this->initialize(v,v_release) with an allocated DenseLinAlgPack::DVector object.
Teuchos::RCP< MemMngPack::ReleaseResource > release_resource_ptr_t
This is a base class that is meant to be inherited by Vector subclasses that wish to call TSFCore::ap...
void set_ele(index_type i, value_type val)
Abstract interface for mutable coordinate vectors {abstract}.
void Vp_StMtV(value_type alpha, const GenPermMatrixSlice &P, BLAS_Cpp::Transp P_trans, const Vector &x, value_type beta)
DVectorSlice set_vec()
Return the non-const dense vector.
Subclass for serial vector space objects that create VectorMutableDense vector and MultiVectorMutable...
void get_sub_vector(const Range1D &rng, RTOpPack::SubVector *sub_vec) const
void free_sub_vector(RTOpPack::SubVector *sub_vec) const
value_type get_ele(index_type i) const
Concrete matrix type to represent general permutation (mapping) matrices.