Reductions.h File Reference

Reduction functions for Fields and Arrays. More...

#include "Evaluator/Reduction.h"
#include "Utilities/WrappedInt.h"

Include dependency graph for Functions/Reductions.h:

This graph shows which files directly or indirectly include this file:


Functions

template<class Subject >
Subject::Element_t sum (const Subject &s)
 Sum up the elements.
template<class Subject >
Subject::Element_t prod (const Subject &s)
 Compute the product of the elements.
template<class Subject >
Subject::Element_t min (const Subject &s)
 Find the smallest element.
template<class Subject >
Subject::Element_t max (const Subject &s)
 Find the largest element.
template<class Subject >
bool all (const Subject &s)
 Report if all of the elements are true.
template<class Subject >
bool any (const Subject &s)
 Report if some of the elements are true.
template<class Subject >
Subject::Element_t bitOr (const Subject &s)
 Bitwise-or all of the elements together.
template<class Subject >
Subject::Element_t bitAnd (const Subject &s)
 Bitwise-and all of the elements together.

Detailed Description

Reduction functions for Fields and Arrays.


Function Documentation

template<class Subject >
Subject::Element_t sum ( const Subject &  s  )  [inline]

Sum up the elements.

template<class Subject >
Subject::Element_t prod ( const Subject &  s  )  [inline]

Compute the product of the elements.

template<class Subject >
Subject::Element_t min ( const Subject &  s  )  [inline]

Find the smallest element.

template<class Subject >
Subject::Element_t max ( const Subject &  s  )  [inline]

Find the largest element.

template<class Subject >
bool all ( const Subject &  s  )  [inline]

Report if all of the elements are true.

Referenced by SpatialPartition< ReferenceLayout >::partition().

template<class Subject >
bool any ( const Subject &  s  )  [inline]

Report if some of the elements are true.

template<class Subject >
Subject::Element_t bitOr ( const Subject &  s  )  [inline]

Bitwise-or all of the elements together.

template<class Subject >
Subject::Element_t bitAnd ( const Subject &  s  )  [inline]

Bitwise-and all of the elements together.


Generated on Wed Mar 16 06:18:49 2011 for FreePOOMA by  doxygen 1.5.9