Debian Codegraph @

packages/stokhos/src/sacado/kokkos/pce/Kokkos_View_UQ_PCE.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 KOKKOS_VIEW_UQ_PCE_HPP
11 #define KOKKOS_VIEW_UQ_PCE_HPP
12
13 namespace Kokkos {
14
15 // Get global sparse 3 tensor
16 template <typename cijk_type>
17 cijk_type& getGlobalCijkTensor() {
18 static cijk_type cijk;
19 return cijk;
20 }
21
22 // Set global sparse 3 tensor
23 template <typename cijk_type>
24 void setGlobalCijkTensor(const cijk_type& cijk) {
25 cijk_type& global_cijk = getGlobalCijkTensor<cijk_type>();
26 global_cijk = cijk;
27 }
28
29 }
30
31 #include "KokkosExp_View_UQ_PCE_Contiguous.hpp"
32
33 #endif /* #ifndef KOKKOS_VIEW_UQ_PCE_HPP */