11 #ifndef RTOPPACK_ROP_GET_SUB_VECTOR_DECL_HPP
12 #define RTOPPACK_ROP_GET_SUB_VECTOR_DECL_HPP
15 #include "RTOpPack_RTOpTHelpers.hpp"
26 template<
class Scalar>
37 void set_range(
const index_type l,
const index_type u );
50 const Ptr<int> &num_values,
51 const Ptr<int> &num_indexes,
52 const Ptr<int> &num_chars
58 const Ptr<ReductTarget> &inout_reduct_obj)
const;
64 const ArrayView<primitive_value_type> &value_data,
65 const ArrayView<index_type> &index_data,
66 const ArrayView<char_type> &char_data
70 const ArrayView<const primitive_value_type> &value_data,
71 const ArrayView<const index_type> &index_data,
72 const ArrayView<const char_type> &char_data,
73 const Ptr<ReductTarget> &reduct_obj
81 const Ptr<ReductTarget> &reduct_obj
97 #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.