14#include "arcane/impl/DataOperation.h"
16#include "arcane/utils/FatalErrorException.h"
31 template <
typename DataType>
32 DataType operator()(
const DataType& input1,
const DataType& input2)
34 return (DataType)(input1 + input2);
42 template <
typename DataType>
43 DataType operator()(
const DataType& input1,
const DataType& input2)
45 return input1 - input2;
53 template <
typename DataType>
54 DataType operator()(
const DataType& input1,
const DataType& input2)
64 template <
typename DataType>
65 DataType operator()(
const DataType& input1,
const DataType& input2)
#define ARCANE_FATAL(...)
Macro throwing a FatalErrorException.
Interface of an operation on a data.
__host__ __device__ Real2 min(Real2 a, Real2 b)
Returns the minimum of two Real2.
T max(const T &a, const T &b, const T &c)
Returns the maximum of three elements.
eReduceType
Supported reduction types.
@ ReduceSum
Sum of values.
@ ReduceMin
Minimum of values.
@ ReduceMax
Maximum of values.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --