11 #ifndef RTOPPACK_ROP_WEIGHTED_NORM2_HPP
12 #define RTOPPACK_ROP_WEIGHTED_NORM2_HPP
14 #include "RTOpPack_RTOpTHelpers.hpp"
21 template<
class Scalar>
25 void operator()(
const Scalar &v0,
const Scalar &v1, Scalar &reduct )
const
35 template<
class Scalar>
38 ROpWeightedNorm2EleWiseReduction<Scalar> >
57 #endif // RTOPPACK_ROP_WEIGHTED_NORM2_HPP
Teuchos::ScalarTraits< Scalar > ST
Weighted Two (Euclidean) norm reduction operator: result = sqrt( sum( v0[i]*conj(v1[i])*v1[i], i=0...n-1 ) ).
Base class for scalar reduction RTOps with two input vectors.
Abstract base class for all reduction objects.
void setOpNameBase(const std::string &op_name_base)
Just set the operator name.
static magnitudeType magnitude(T a)
ST::magnitudeType operator()(const ReductTarget &reduct_obj) const
const Scalar & getRawVal(const ReductTarget &reduct_obj) const
void operator()(const Scalar &v0, const Scalar &v1, Scalar &reduct) const