RTOp Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
RTOpPack::ROpGetElement< Scalar > Class Template Reference

Returns the value of the element at index global_i. More...

#include <RTOpPack_ROpGetElement.hpp>

Inheritance diagram for RTOpPack::ROpGetElement< Scalar >:

Public Member Functions

 ROpGetElement (const Ordinal &global_i)
void initialize (const Ordinal &global_i)
Scalar operator() (const ReductTarget &reduct_obj) const
 ROp_1_CoordVariantScalarReduction (const Scalar &initReductObjValue_in=Scalar(), ROpGetElementEleWiseReductionOp< Scalar > eleWiseReduction_in=ROpGetElementEleWiseReductionOp< Scalar >(), SumScalarReductObjReduction< Scalar > reductObjReduction_in=SumScalarReductObjReduction< Scalar >())
void setEleWiseReduction (ROpGetElementEleWiseReductionOp< Scalar > eleWiseReduction_in)
const ROpGetElementEleWiseReductionOp< Scalar > & getEleWiseReduction () const
bool coord_invariant_impl () const
 This RTOp is NOT coordinate invariant! .
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
Public Member Functions inherited from RTOpPack::ROpScalarReductionWithOpBase< Scalar, ConcreteReductObj, ReductObjReduction >
 ROpScalarReductionWithOpBase (const ConcreteReductObj &initReductObjValue_in=ScalarTraits< Scalar >::zero(), ReductObjReduction reductObjReduction_in=ReductObjReduction())
const ConcreteReductObj & getRawVal (const ReductTarget &reduct_obj) const
void setRawVal (const ConcreteReductObj &rawVal, const Ptr< ReductTarget > &reduct_obj) const
ConcreteReductObj 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
void get_reduct_type_num_entries (const Ptr< int > &num_values, const Ptr< int > &num_indexes, const Ptr< int > &num_chars) const
 Get the number of entries of each basic data type in the externalized state for a reduction object for this operator.
Teuchos::RCP< ReductTargetreduct_obj_create () const
 Creates a new reduction target object initialized and ready to be used in a reduction.
void reduce_reduct_objs (const ReductTarget &in_reduct_obj, const Ptr< ReductTarget > &inout_reduct_obj) const
 Reduce intermediate reduction target objects.
void reduct_obj_reinit (const Ptr< ReductTarget > &reduct_obj) const
 Reinitialize an already created reduction object.
void extract_reduct_obj_state (const ReductTarget &reduct_obj, const ArrayView< primitive_value_type > &value_data, const ArrayView< index_type > &index_data, const ArrayView< char_type > &char_data) const
 Extract the state of an already created reduction object.
void load_reduct_obj_state (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
 Load the state of an already created reduction object given arrays of primitive objects.
std::string op_name () const
 Return the name (as a null-terminated C-style string) of the operator.
bool coord_invariant () const
 Returns true if this operator is coordinate invariant.
Range1D range () const
 Returns the continuous range of elements that this operator is defined over.
void apply_op (const ArrayView< const ConstSubVectorView< Scalar > > &sub_vecs, const ArrayView< const SubVectorView< Scalar > > &targ_sub_vecs, const Ptr< ReductTarget > &reduct_obj) const
 Apply the reduction/transformation operator to a set of sub-vectors.

Protected Member Functions

virtual Range1D range_impl () const
 STANDARD_MEMBER_COMPOSITION_MEMBERS (ConcreteReductObj, initReductObjValue)
 RTOpT (const std::string &op_name_base="")
 Constructor that creates an operator name appended with the type.
void setOpNameBase (const std::string &op_name_base)
 Just set the operator name.
virtual std::string op_name_impl () const

Additional Inherited Members

typedef ROpScalarReductionWithOpBase< Scalar, Scalar, SumScalarReductObjReduction< Scalar > > base_t
Public Types inherited from RTOpPack::ROpScalarReductionWithOpBase< Scalar, ConcreteReductObj, ReductObjReduction >
typedef RTOpT< Scalar >::primitive_value_type primitive_value_type
typedef PrimitiveTypeTraits< Scalar, Scalar >::primitiveType primitive_value_type

Detailed Description

template<class Scalar>
class RTOpPack::ROpGetElement< Scalar >

Returns the value of the element at index global_i.

Warning! If the element is not found, then 0 is returned!

Definition at line 82 of file RTOpPack_ROpGetElement.hpp.

Constructor & Destructor Documentation

◆ ROpGetElement()

template<class Scalar>
RTOpPack::ROpGetElement< Scalar >::ROpGetElement ( const Ordinal & global_i)
inline

Definition at line 91 of file RTOpPack_ROpGetElement.hpp.

Member Function Documentation

◆ initialize()

template<class Scalar>
void RTOpPack::ROpGetElement< Scalar >::initialize ( const Ordinal & global_i)
inline

Definition at line 98 of file RTOpPack_ROpGetElement.hpp.

◆ operator()()

template<class Scalar>
Scalar RTOpPack::ROpGetElement< Scalar >::operator() ( const ReductTarget & reduct_obj) const
inline

Definition at line 103 of file RTOpPack_ROpGetElement.hpp.

◆ range_impl()

template<class Scalar>
virtual Range1D RTOpPack::ROpGetElement< Scalar >::range_impl ( ) const
inlineprotectedvirtual

Reimplemented from RTOpPack::RTOpT< Scalar >.

Definition at line 109 of file RTOpPack_ROpGetElement.hpp.


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