RTOp Package Browser (Single Doxygen Collection)
Version of the Day
|
Returns the minimum element greater than some bound along with its index: result.scalar = x(k)
and result.index = k
such that x(k) <= x(i)
for all i
where x(i) > bound
and k
is the minimum index to break ties.
More...
#include <RTOpPack_ROpMinIndexGreaterThanBound.hpp>
Public Member Functions | |
ROpMinIndexGreaterThanBound (const Scalar &bound_in=Teuchos::ScalarTraits< Scalar >::zero()) | |
void | bound (const Scalar &bound_in) |
ScalarIndex< Scalar > | operator() (const ReductTarget &reduct_obj) const |
Public Member Functions inherited from RTOpPack::ROp_1_CoordVariantScalarReduction< Scalar, ScalarIndex< Scalar >, ROpMinIndexGreaterThanBoundEleWiseReductionOp< Scalar >, ROpMinIndexReductObjReductionOp< Scalar > > | |
ROp_1_CoordVariantScalarReduction (const ScalarIndex< Scalar > &initReductObjValue_in=ScalarIndex< Scalar >(), ROpMinIndexGreaterThanBoundEleWiseReductionOp< Scalar >eleWiseReduction_in=ROpMinIndexGreaterThanBoundEleWiseReductionOp< Scalar >(), ROpMinIndexReductObjReductionOp< Scalar >reductObjReduction_in=ROpMinIndexReductObjReductionOp< Scalar >()) | |
void | setEleWiseReduction (ROpMinIndexGreaterThanBoundEleWiseReductionOp< Scalar >eleWiseReduction_in) |
const ROpMinIndexGreaterThanBoundEleWiseReductionOp < Scalar > & | getEleWiseReduction () const |
bool | coord_invariant_impl () const |
This RTOp is NOT coordinate invariant! . More... | |
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, ScalarIndex< Scalar >, ROpMinIndexReductObjReductionOp< Scalar > > | |
ROpScalarReductionWithOpBase (const ScalarIndex< Scalar > &initReductObjValue_in=ScalarTraits< Scalar >::zero(), ROpMinIndexReductObjReductionOp< Scalar >reductObjReduction_in=ROpMinIndexReductObjReductionOp< Scalar >()) | |
const ScalarIndex< Scalar > & | getRawVal (const ReductTarget &reduct_obj) const |
void | setRawVal (const ScalarIndex< Scalar > &rawVal, const Ptr< ReductTarget > &reduct_obj) const |
ScalarIndex< Scalar > | 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< ReductTarget > | reduct_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 |
Public Member Functions inherited from RTOpPack::RTOpT< Scalar > | |
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. More... | |
Teuchos::RCP< ReductTarget > | reduct_obj_create () const |
Creates a new reduction target object initialized and ready to be used in a reduction. More... | |
void | reduce_reduct_objs (const ReductTarget &in_reduct_obj, const Ptr< ReductTarget > &inout_reduct_obj) const |
Reduce intermediate reduction target objects. More... | |
void | reduct_obj_reinit (const Ptr< ReductTarget > &reduct_obj) const |
Reinitialize an already created reduction object. More... | |
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. More... | |
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. More... | |
std::string | op_name () const |
Return the name (as a null-terminated C-style string) of the operator. More... | |
bool | coord_invariant () const |
Returns true if this operator is coordinate invariant. More... | |
Range1D | range () const |
Returns the continuous range of elements that this operator is defined over. More... | |
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. More... | |
Public Member Functions inherited from Teuchos::Describable | |
DescribableStreamManipulatorState | describe (const Describable &describable, const EVerbosityLevel verbLevel=Describable::verbLevel_default) |
std::ostream & | operator<< (std::ostream &os, const DescribableStreamManipulatorState &d) |
virtual std::string | description () const |
virtual void | describe (FancyOStream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
void | describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
virtual | ~Describable () |
LabeledObject () | |
virtual | ~LabeledObject () |
virtual void | setObjectLabel (const std::string &objectLabel) |
virtual std::string | getObjectLabel () const |
Returns the minimum element greater than some bound along with its index: result.scalar = x(k)
and result.index = k
such that x(k) <= x(i)
for all i
where x(i) > bound
and k
is the minimum index to break ties.
If no element is greater than bound
then results.index < 0
.
Definition at line 95 of file RTOpPack_ROpMinIndexGreaterThanBound.hpp.
|
inline |
Definition at line 105 of file RTOpPack_ROpMinIndexGreaterThanBound.hpp.
|
inline |
Definition at line 115 of file RTOpPack_ROpMinIndexGreaterThanBound.hpp.
|
inline |
Definition at line 122 of file RTOpPack_ROpMinIndexGreaterThanBound.hpp.