43 #ifndef RTOPPACK_ROP_GET_SUB_VECTOR_DECL_HPP
44 #define RTOPPACK_ROP_GET_SUB_VECTOR_DECL_HPP
47 #include "RTOpPack_RTOpTHelpers.hpp"
58 template<
class Scalar>
69 void set_range(
const index_type l,
const index_type u );
82 const Ptr<int> &num_values,
83 const Ptr<int> &num_indexes,
84 const Ptr<int> &num_chars
90 const Ptr<ReductTarget> &inout_reduct_obj)
const;
96 const ArrayView<primitive_value_type> &value_data,
97 const ArrayView<index_type> &index_data,
98 const ArrayView<char_type> &char_data
102 const ArrayView<const primitive_value_type> &value_data,
103 const ArrayView<const index_type> &index_data,
104 const ArrayView<const char_type> &char_data,
105 const Ptr<ReductTarget> &reduct_obj
113 const Ptr<ReductTarget> &reduct_obj
129 #endif // RTOPPACK_ROP_GET_SUB_VECTOR_DECL_HPP
void load_reduct_obj_state_impl(const ArrayView< const primitive_value_type > &value_data, const ArrayView< const index_type > &index_data, const ArrayView< const char_type > &char_data, const Ptr< ReductTarget > &reduct_obj) const
void reduce_reduct_objs_impl(const ReductTarget &in_reduct_obj, const Ptr< ReductTarget > &inout_reduct_obj) const
void set_range(const index_type l, const index_type u)
Set the range of global indexes to extract elements for.
void extract_reduct_obj_state_impl(const ReductTarget &reduct_obj, const ArrayView< primitive_value_type > &value_data, const ArrayView< index_type > &index_data, const ArrayView< char_type > &char_data) const
ROpGetSubVector(const index_type l=0, const index_type u=0)
RTOpT< Scalar >::primitive_value_type primitive_value_type
Teuchos::RCP< ReductTarget > reduct_obj_create_impl() const
Reduction operator that extracts a sub-vector in the range of global zero-based indexes [l...
void apply_op_impl(const ArrayView< const ConstSubVectorView< Scalar > > &sub_vecs, const ArrayView< const SubVectorView< Scalar > > &targ_sub_vecs, const Ptr< ReductTarget > &reduct_obj) const
bool coord_invariant_impl() const
void get_reduct_type_num_entries_impl(const Ptr< int > &num_values, const Ptr< int > &num_indexes, const Ptr< int > &num_chars) const
void reduct_obj_reinit_impl(const Ptr< ReductTarget > &reduct_obj) const
const ConstSubVectorView< Scalar > operator()(const ReductTarget &reduct_obj) const
Extract the subvector after all of the reductions are completed.