RTOpPack::ROpGetSubVector< Scalar > Class Template Reference

Reduction operator that extracts a sub-vector in the range of global zero-based indexes [l,u]. More...

#include <RTOpPack_ROpGetSubVector_decl.hpp>

Inheritance diagram for RTOpPack::ROpGetSubVector< Scalar >:

Inheritance graph
[legend]
List of all members.

Overridden from RTOpT

void get_reduct_type_num_entries_impl (const Ptr< int > &num_values, const Ptr< int > &num_indexes, const Ptr< int > &num_chars) const
 
Teuchos::RCP< ReductTargetreduct_obj_create_impl () const
 
void reduce_reduct_objs_impl (const ReductTarget &in_reduct_obj, const Ptr< ReductTarget > &inout_reduct_obj) const
 
void reduct_obj_reinit_impl (const Ptr< ReductTarget > &reduct_obj) const
 
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
 
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
 
bool coord_invariant_impl () const
 
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
 

Public Types

typedef RTOpT< Scalar >::primitive_value_type primitive_value_type
 

Public Member Functions

 ROpGetSubVector (const index_type l=0, const index_type u=0)
 
void set_range (const index_type l, const index_type u)
 Set the range of global indexes to extract elements for.
const ConstSubVectorView<
Scalar > 
operator() (const ReductTarget &reduct_obj) const
 Extract the subvector after all of the reductions are completed.

Detailed Description

template<class Scalar>
class RTOpPack::ROpGetSubVector< Scalar >

Reduction operator that extracts a sub-vector in the range of global zero-based indexes [l,u].

ToDo: Finish documentation!

Definition at line 46 of file RTOpPack_ROpGetSubVector_decl.hpp.


Member Typedef Documentation

template<class Scalar>
typedef RTOpT<Scalar>::primitive_value_type RTOpPack::ROpGetSubVector< Scalar >::primitive_value_type

Reimplemented from RTOpPack::RTOpT< Scalar >.

Definition at line 50 of file RTOpPack_ROpGetSubVector_decl.hpp.


Constructor & Destructor Documentation

template<class Scalar>
RTOpPack::ROpGetSubVector< Scalar >::ROpGetSubVector ( const index_type  l = 0,
const index_type  u = 0 
)

Definition at line 41 of file RTOpPack_ROpGetSubVector_def.hpp.


Member Function Documentation

template<class Scalar>
void RTOpPack::ROpGetSubVector< Scalar >::set_range ( const index_type  l,
const index_type  u 
)

Set the range of global indexes to extract elements for.

Definition at line 49 of file RTOpPack_ROpGetSubVector_def.hpp.

template<class Scalar>
const ConstSubVectorView< Scalar > RTOpPack::ROpGetSubVector< Scalar >::operator() ( const ReductTarget reduct_obj  )  const

Extract the subvector after all of the reductions are completed.

Definition at line 60 of file RTOpPack_ROpGetSubVector_def.hpp.

template<class Scalar>
void RTOpPack::ROpGetSubVector< Scalar >::get_reduct_type_num_entries_impl ( const Ptr< int > &  num_values,
const Ptr< int > &  num_indexes,
const Ptr< int > &  num_chars 
) const [virtual]

Reimplemented from RTOpPack::RTOpT< Scalar >.

Definition at line 71 of file RTOpPack_ROpGetSubVector_def.hpp.

template<class Scalar>
Teuchos::RCP< ReductTarget > RTOpPack::ROpGetSubVector< Scalar >::reduct_obj_create_impl (  )  const [virtual]

Reimplemented from RTOpPack::RTOpT< Scalar >.

Definition at line 87 of file RTOpPack_ROpGetSubVector_def.hpp.

template<class Scalar>
void RTOpPack::ROpGetSubVector< Scalar >::reduce_reduct_objs_impl ( const ReductTarget in_reduct_obj,
const Ptr< ReductTarget > &  inout_reduct_obj 
) const [virtual]

Reimplemented from RTOpPack::RTOpT< Scalar >.

Definition at line 99 of file RTOpPack_ROpGetSubVector_def.hpp.

template<class Scalar>
void RTOpPack::ROpGetSubVector< Scalar >::reduct_obj_reinit_impl ( const Ptr< ReductTarget > &  reduct_obj  )  const [virtual]

Reimplemented from RTOpPack::RTOpT< Scalar >.

Definition at line 140 of file RTOpPack_ROpGetSubVector_def.hpp.

template<class Scalar>
void RTOpPack::ROpGetSubVector< Scalar >::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

Definition at line 154 of file RTOpPack_ROpGetSubVector_def.hpp.

template<class Scalar>
void RTOpPack::ROpGetSubVector< Scalar >::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

Definition at line 182 of file RTOpPack_ROpGetSubVector_def.hpp.

template<class Scalar>
bool RTOpPack::ROpGetSubVector< Scalar >::coord_invariant_impl (  )  const [virtual]

Reimplemented from RTOpPack::RTOpT< Scalar >.

Definition at line 215 of file RTOpPack_ROpGetSubVector_def.hpp.

template<class Scalar>
void RTOpPack::ROpGetSubVector< Scalar >::apply_op_impl ( const ArrayView< const ConstSubVectorView< Scalar > > &  sub_vecs,
const ArrayView< const SubVectorView< Scalar > > &  targ_sub_vecs,
const Ptr< ReductTarget > &  reduct_obj 
) const [virtual]

Implements RTOpPack::RTOpT< Scalar >.

Definition at line 222 of file RTOpPack_ROpGetSubVector_def.hpp.


The documentation for this class was generated from the following files:
Generated on Wed May 12 21:25:52 2010 for Collection of Concrete Vector Reduction/Transformation Operator Implementations by  doxygen 1.4.7