Collection of Concrete Vector Reduction/Transformation Operator Implementations
Version of the Day
Main Page
Related Pages
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
src
ops_lib
RTOpPack_ROpCountNanInf.hpp
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_COUNT_NAN_INF_HPP
12
#define RTOPPACK_ROP_COUNT_NAN_INF_HPP
13
14
#include "RTOpPack_RTOpTHelpers.hpp"
15
16
17
namespace
RTOpPack {
18
19
23
RTOP_ROP_1_REDUCT_SCALAR( ROpCountNanInf,
24
index_type,
// Reduction object type
25
REDUCT_TYPE_SUM
// Reduction object reduction
26
)
27
{
28
reduct += ( ScalarTraits<Scalar>::isnaninf(v0) ? 1 : 0 );
29
}
30
31
32
}
// namespace RTOpPack
33
34
35
#endif // RTOPPACK_ROP_COUNT_NAN_INF_HPP
Generated on Fri Dec 20 2024 09:18:02 for Collection of Concrete Vector Reduction/Transformation Operator Implementations by
1.8.5