escript  Revision_
Namespaces | Functions
BinaryOp.h File Reference

Describes binary operations performed on instances of DataAbstract. More...

#include "system_dep.h"
#include "DataTypes.h"
#include "DataConstant.h"
#include "DataTagged.h"
#include "DataExpanded.h"
#include "DataMaths.h"

Go to the source code of this file.

Namespaces

namespace  escript

Functions

template<class BinaryFunction >
void escript::binaryOp (DataTagged &left, const DataConstant &right, BinaryFunction operation)
 Perform the given binary operation.
template<class BinaryFunction >
void escript::binaryOp (DataTagged &left, const DataTypes::ValueType &right, const DataTypes::ShapeType &shape, BinaryFunction operation)
 apply the binary op to each value in left and the single value right.
template<class BinaryFunction >
void escript::binaryOp (DataTagged &left, const DataTagged &right, BinaryFunction operation)
template<class BinaryFunction >
void escript::binaryOp (DataConstant &left, const DataConstant &right, BinaryFunction operation)
template<class BinaryFunction >
void escript::binaryOp (DataExpanded &left, const DataReady &right, BinaryFunction operation)

Detailed Description

Describes binary operations performed on instances of DataAbstract.

For operations on DataVector see DataMaths.h. For operations on double* see LocalOps.h.