FreePOOMA  2.4.1
Functions
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)

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.

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

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.