RTOpPack::ROpMaxIndex< Scalar > Class Template Reference

Returns the maximum element and its index: result.scalar = x(k) and result.index = k such that x(k) >= x(i) for i=1...n and k is the minimum index to break ties. More...

#include <RTOpPack_ROpMaxIndex.hpp>

Inheritance diagram for RTOpPack::ROpMaxIndex< Scalar >:

[legend]
List of all members.

Overridden from RTOpT

bool coord_invariant () const
 This RTOp is NOT coordinate invariant!
void reduce_reduct_objs (const ReductTarget &in_reduct_obj, ReductTarget *inout_reduct_obj) const
 
void apply_op (const int num_vecs, const SubVectorT< Scalar > sub_vecs[], const int num_targ_vecs, const MutableSubVectorT< Scalar > targ_sub_vecs[], ReductTarget *reduct_obj) const
 

Public Member Functions

 ROpMaxIndex ()
 
ScalarIndex< Scalar > operator() (const ReductTarget &reduct_obj) const
 

Detailed Description

template<class Scalar>
class RTOpPack::ROpMaxIndex< Scalar >

Returns the maximum element and its index: result.scalar = x(k) and result.index = k such that x(k) >= x(i) for i=1...n and k is the minimum index to break ties.

Definition at line 42 of file RTOpPack_ROpMaxIndex.hpp.


Constructor & Destructor Documentation

template<class Scalar>
RTOpPack::ROpMaxIndex< Scalar >::ROpMaxIndex  )  [inline]
 

Definition at line 45 of file RTOpPack_ROpMaxIndex.hpp.


Member Function Documentation

template<class Scalar>
ScalarIndex<Scalar> RTOpPack::ROpMaxIndex< Scalar >::operator() const ReductTarget reduct_obj  )  const [inline]
 

Definition at line 50 of file RTOpPack_ROpMaxIndex.hpp.

template<class Scalar>
bool RTOpPack::ROpMaxIndex< Scalar >::coord_invariant  )  const [inline, virtual]
 

This RTOp is NOT coordinate invariant!

Reimplemented from RTOpPack::RTOpT< Scalar >.

Definition at line 54 of file RTOpPack_ROpMaxIndex.hpp.

template<class Scalar>
void RTOpPack::ROpMaxIndex< Scalar >::reduce_reduct_objs const ReductTarget in_reduct_obj,
ReductTarget inout_reduct_obj
const [inline, virtual]
 

Reimplemented from RTOpPack::RTOpT< Scalar >.

Definition at line 56 of file RTOpPack_ROpMaxIndex.hpp.

template<class Scalar>
void RTOpPack::ROpMaxIndex< Scalar >::apply_op const int  num_vecs,
const SubVectorT< Scalar >  sub_vecs[],
const int  num_targ_vecs,
const MutableSubVectorT< Scalar >  targ_sub_vecs[],
ReductTarget reduct_obj
const [inline, virtual]
 

Implements RTOpPack::RTOpT< Scalar >.

Definition at line 66 of file RTOpPack_ROpMaxIndex.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Sep 18 12:39:44 2008 for RTOp : Vector Reduction/Transformation Operators by doxygen 1.3.9.1