Debian Codegraph @

packages/stokhos/src/sacado/kokkos/Stokhos_Is_Constant.hpp

raw
1 // @HEADER
2 // *****************************************************************************
3 // Stokhos Package
4 //
5 // Copyright 2009 NTESS and the Stokhos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9
10 #ifndef STOKHOS_IS_CONSTANT_HPP
11 #define STOKHOS_IS_CONSTANT_HPP
12
13 #include "Kokkos_Macros.hpp"
14
15 namespace Sacado {
16
17 // Simple function to determine whether a UQ type (Ensemble, PCE) is
18 // constant. Defaults to true for all types.
19 template <typename T>
20 KOKKOS_INLINE_FUNCTION
21 bool is_constant(const T& x) {
22 return true;
23 }
24
25 }
26
27 #endif // STOKHOS_IS_CONSTANT_HPP