Support Software for Vector Reduction/Transformation Operators  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | List of all members
RTOpPack::ROp_2_ScalarReduction< Scalar, ReductScalar, EleWiseReduction, ReductObjReduction > Class Template Reference

Base class for scalar reduction RTOps with two input vectors. More...

#include <RTOpPack_RTOpTHelpers_decl.hpp>

Inheritance diagram for RTOpPack::ROp_2_ScalarReduction< Scalar, ReductScalar, EleWiseReduction, ReductObjReduction >:
Inheritance graph
[legend]

Public Types

typedef
ROpScalarReductionWithOpBase
< Scalar, ReductScalar,
ReductObjReduction > 
base_t
 
- Public Types inherited from RTOpPack::ROpScalarReductionWithOpBase< Scalar, ReductScalar, ReductObjReduction >
typedef RTOpT< Scalar >
::primitive_value_type 
primitive_value_type
 

Public Member Functions

 ROp_2_ScalarReduction (const ReductScalar &initReductObjValue_in=ReductScalar(), EleWiseReduction eleWiseReduction_in=EleWiseReduction(), ReductObjReduction reductObjReduction_in=ReductObjReduction())
 
- Public Member Functions inherited from RTOpPack::ROpScalarReductionWithOpBase< Scalar, ReductScalar, ReductObjReduction >
 ROpScalarReductionWithOpBase (const ReductScalar &initReductObjValue_in=ScalarTraits< Scalar >::zero(), ReductObjReduction reductObjReduction_in=ReductObjReduction())
 
const ReductScalar & getRawVal (const ReductTarget &reduct_obj) const
 
void setRawVal (const ReductScalar &rawVal, const Ptr< ReductTarget > &reduct_obj) const
 
ReductScalar operator() (const ReductTarget &reduct_obj) const
 
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
 
virtual 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
 

Overridden from RTOpT

void apply_op_impl (const ArrayView< const ConstSubVectorView< Scalar > > &sub_vecs, const ArrayView< const SubVectorView< Scalar > > &targ_sub_vecs, const Ptr< ReductTarget > &reduct_obj_inout) const
 

Additional Inherited Members

- Protected Member Functions inherited from RTOpPack::ROpScalarReductionWithOpBase< Scalar, ReductScalar, ReductObjReduction >
 STANDARD_MEMBER_COMPOSITION_MEMBERS (ReductScalar, initReductObjValue)
 

Detailed Description

template<class Scalar, class ReductScalar, class EleWiseReduction, class ReductObjReduction = SumScalarReductObjReduction<ReductScalar>>
class RTOpPack::ROp_2_ScalarReduction< Scalar, ReductScalar, EleWiseReduction, ReductObjReduction >

Base class for scalar reduction RTOps with two input vectors.

Definition at line 644 of file RTOpPack_RTOpTHelpers_decl.hpp.

Member Typedef Documentation

template<class Scalar , class ReductScalar , class EleWiseReduction , class ReductObjReduction = SumScalarReductObjReduction<ReductScalar>>
typedef ROpScalarReductionWithOpBase<Scalar, ReductScalar, ReductObjReduction> RTOpPack::ROp_2_ScalarReduction< Scalar, ReductScalar, EleWiseReduction, ReductObjReduction >::base_t

Definition at line 651 of file RTOpPack_RTOpTHelpers_decl.hpp.

Constructor & Destructor Documentation

template<class Scalar , class ReductScalar , class EleWiseReduction , class ReductObjReduction = SumScalarReductObjReduction<ReductScalar>>
RTOpPack::ROp_2_ScalarReduction< Scalar, ReductScalar, EleWiseReduction, ReductObjReduction >::ROp_2_ScalarReduction ( const ReductScalar &  initReductObjValue_in = ReductScalar(),
EleWiseReduction  eleWiseReduction_in = EleWiseReduction(),
ReductObjReduction  reductObjReduction_in = ReductObjReduction() 
)
inline

Definition at line 654 of file RTOpPack_RTOpTHelpers_decl.hpp.

Member Function Documentation

template<class Scalar , class ReductScalar , class EleWiseReduction , class ReductObjReduction = SumScalarReductObjReduction<ReductScalar>>
void RTOpPack::ROp_2_ScalarReduction< Scalar, ReductScalar, EleWiseReduction, ReductObjReduction >::apply_op_impl ( const ArrayView< const ConstSubVectorView< Scalar > > &  sub_vecs,
const ArrayView< const SubVectorView< Scalar > > &  targ_sub_vecs,
const Ptr< ReductTarget > &  reduct_obj_inout 
) const
inlinevirtual

Implements RTOpPack::RTOpT< Scalar >.

Definition at line 667 of file RTOpPack_RTOpTHelpers_decl.hpp.


The documentation for this class was generated from the following file: