Collection of Concrete Vector Reduction/Transformation Operator Implementations
Version of the Day
|
Returns the maximum element less 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_ROpMaxIndexLessThanBound.hpp>
Public Member Functions | |
ROpMaxIndexLessThanBound (const Scalar &bound_in=Teuchos::ScalarTraits< Scalar >::zero()) | |
void | bound (const Scalar &bound_in) |
ScalarIndex< Scalar > | operator() (const ReductTarget &reduct_obj) const |
Returns the maximum element less 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 less than bound
then results.index < 0
.
Definition at line 95 of file RTOpPack_ROpMaxIndexLessThanBound.hpp.
|
inline |
Definition at line 104 of file RTOpPack_ROpMaxIndexLessThanBound.hpp.
|
inline |
Definition at line 114 of file RTOpPack_ROpMaxIndexLessThanBound.hpp.
|
inline |
Definition at line 121 of file RTOpPack_ROpMaxIndexLessThanBound.hpp.