11 #ifndef RTOPPACK_ROP_NORM2_HPP
12 #define RTOPPACK_ROP_NORM2_HPP
14 #include "RTOpPack_RTOpTHelpers.hpp"
21 template<
class Scalar>
25 void operator()(
const Scalar &v0, Scalar &reduct )
const
27 reduct += ScalarTraits<Scalar>::conjugate(v0)*v0;
35 template<
class Scalar>
59 #endif // RTOPPACK_ROP_NORM2_HPP
ST::magnitudeType operator()(const ReductTarget &reduct_obj) const
Two (Euclidean) norm reduction operator: result = sqrt( sum( conj(v0[i])*v0[i], i=0...n-1 ) ).
void setOpNameBase(const std::string &op_name_base)
static magnitudeType magnitude(T a)
const ConcreteReductObj & getRawVal(const ReductTarget &reduct_obj) const
Teuchos::ScalarTraits< Scalar > ST