RTOp Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RTOpPack_ROpNorm1.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // RTOp: Interfaces and Support Software for Vector Reduction Transformation
4 // Operations
5 //
6 // Copyright 2006 NTESS and the RTOp contributors.
7 // SPDX-License-Identifier: BSD-3-Clause
8 // *****************************************************************************
9 // @HEADER
10 
11 #ifndef RTOPPACK_ROP_NORM1_HPP
12 #define RTOPPACK_ROP_NORM1_HPP
13 
14 #include "RTOpPack_RTOpTHelpers.hpp"
15 
16 
17 namespace RTOpPack {
18 
19 
22  typename ScalarTraits<Scalar>::magnitudeType, // Reduction object type
23  REDUCT_TYPE_SUM // Reduction object reduction
24  )
25 {
26  reduct += ScalarTraits<Scalar>::magnitude(v0);
27 }
28 
29 
30 } // namespace RTOpPack
31 
32 
33 #endif // RTOPPACK_ROP_NORM1_HPP
RTOP_ROP_1_REDUCT_SCALAR(ROpCountNanInf, index_type, REDUCT_TYPE_SUM)
Reduction operator that counts the number of entries that are NaN or Inf.
static magnitudeType magnitude(T a)