11 #ifndef RTOPPACK_TOP_PAIR_WISE_MAX_HPP
12 #define RTOPPACK_TOP_PAIR_WISE_MAX_HPP
14 #include "RTOpPack_RTOpTHelpers.hpp"
21 template<
class Scalar>
28 void operator()(
const Scalar &v0,
const Scalar &v1, Scalar &z0 )
const
30 z0 = alpha_ * std::max(v0, v1);
40 template<
class Scalar>
42 :
public TOp_2_1_Base<Scalar, TOpPairWiseMaxPairWiseTransformation<Scalar> >
58 #endif // RTOPPACK_TOP_PAIR_WISE_MAX_HPP
TOpPairWiseMax(const Scalar &alpha)
Pair-wise Maximum transformation operator: z0[i] = alpha*max(v0[i],v1[i]), i=0...n-1.
void setOpNameBase(const std::string &op_name_base)