Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_Is_Constant.hpp
Go to the documentation of this file.
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
KOKKOS_INLINE_FUNCTION bool is_constant(const T &x)