47 namespace AbstractLinAlgPack {
56 namespace rcp = MemMngPack;
88 namespace rcp = MemMngPack;
90 const Range1D rng = RangePack::full_range( rng_in, 1, this_dim );
102 this_offset + rng.
lbound()
103 ,this_offset + rng.
ubound() )
113 const Range1D rng = RangePack::full_range(rng_in,1,this_dim);
116 full_vec_->get_sub_vector( rng + this_offset, sub_vec );
135 sub_vec.setGlobalOffset( sub_vec.globalOffset() + this_offset );
void set_sub_vector(const RTOpPack::SparseSubVector &sub_vec)
const VectorSpaceSubSpace & space_impl() const
RTOp_index_type index_type
void set_uninitialized()
Set uninitialized()
VectorMutableSubView()
Constructs to uninitialized.
RTOp_value_type value_type
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Index ubound() const
Return upper bound of the range.
void initialize(const vec_mut_ptr_t &vec, const Range1D &rng)
Initialize.
void commit_sub_vector(RTOpPack::MutableSubVector *sub_vec)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
. One-based subregion index range class.
virtual void has_changed() const
Must be called by any vector subclass that modifies this vector object!
void get_sub_vector(const Range1D &rng, RTOpPack::MutableSubVector *sub_vec)
void validate_range(const Range1D &rng) const
Validate rng.
RTOp_index_type size_type
void set_uninitialized()
Set uninitialized()
const Range1D & rng() const
Teuchos_Ordinal globalOffset() const
vec_ptr_t sub_view(const Range1D &rng) const
Index lbound() const
Return lower bound of the range.
void setGlobalOffset(Teuchos_Ordinal globalOffset)
SparseSubVectorT< RTOp_value_type > SparseSubVector
void initialize(const vec_ptr_t &full_vec, const Range1D &rng)
Initialize a sub-view based on a full vector.
Class for a mutable sub-vector.
vec_ptr_t sub_view(const Range1D &rng) const
Overridden to pick VectorSubView::sub_view().
void set_ele(index_type i, value_type val)
RangePack::Range1D Range1D