escript  Revision_
Classes | Namespaces | Functions
DataAlgorithm.h File Reference
#include "system_dep.h"
#include "DataExpanded.h"
#include "DataTagged.h"
#include "DataConstant.h"
#include "DataMaths.h"
#include <iostream>
#include <algorithm>
#include <list>

Go to the source code of this file.

Classes

class  escript::DataAlgorithmAdapter< BinaryFunction >
 Adapt binary algorithms so they may be used in DataArrayView reduction operations. More...
struct  escript::FMax
 Return the maximum value of the two given values. More...
struct  escript::FMin
 Return the minimum value of the two given values. More...
struct  escript::AbsMax
 Return the absolute maximum value of the two given values. More...
struct  escript::AbsMin
 Return the absolute minimum value of the two given values. More...
struct  escript::Length
 Return the length between the two given values. More...
struct  escript::Trace
 Return the trace of the two given values. More...
struct  escript::AbsGT
 Return 1 if abs(x)>y, otherwise return 0. More...
struct  escript::AbsLTE
 Return 1 if abs(x)<=y, otherwise return 0. More...

Namespaces

namespace  escript

Functions

template<class BinaryFunction >
double escript::algorithm (const DataExpanded &data, BinaryFunction operation, double initial_value)
 Perform the given operation upon all values in all data-points in the given Data object and return the final result.
template<class BinaryFunction >
double escript::algorithm (DataTagged &data, BinaryFunction operation, double initial_value)
template<class BinaryFunction >
double escript::algorithm (DataConstant &data, BinaryFunction operation, double initial_value)
template<class BinaryFunction >
void escript::dp_algorithm (const DataExpanded &data, DataExpanded &result, BinaryFunction operation, double initial_value)
 Perform the given data-point reduction operation on all data-points in data, storing results in corresponding data-points of result.
template<class BinaryFunction >
void escript::dp_algorithm (const DataTagged &data, DataTagged &result, BinaryFunction operation, double initial_value)
template<class BinaryFunction >
void escript::dp_algorithm (DataConstant &data, DataConstant &result, BinaryFunction operation, double initial_value)