Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_Cuda_FlatSparse3Tensor.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_CUDA_FLAT_SPARSE_3_TENSOR_HPP
11 #define STOKHOS_CUDA_FLAT_SPARSE_3_TENSOR_HPP
12 
13 #include <iostream>
14 
15 #include "Kokkos_Core.hpp"
16 
17 #include "Stokhos_Multiply.hpp"
20 
21 #include "cuda_profiler_api.h"
22 
23 namespace Stokhos {
24 
25 //----------------------------------------------------------------------------
26 
27 template< typename TensorScalar ,
28  typename MatrixScalar ,
29  typename VectorScalar >
30 class Multiply<
31  BlockCrsMatrix< FlatSparse3Tensor< TensorScalar, Kokkos::Cuda >,
32  MatrixScalar, Kokkos::Cuda >,
33  Kokkos::View<VectorScalar**, Kokkos::LayoutLeft, Kokkos::Cuda>,
34  Kokkos::View<VectorScalar**, Kokkos::LayoutLeft, Kokkos::Cuda> >
35 {
36 public:
37 
38  typedef Kokkos::Cuda execution_space ;
39  typedef execution_space::size_type size_type ;
40 
43  typedef Kokkos::View< VectorScalar** ,
44  Kokkos::LayoutLeft ,
45  Kokkos::Cuda > vector_type ;
46 
47 
48 
49  //------------------------------------
50 
51  static void apply( const matrix_type & A ,
52  const vector_type & x ,
53  const vector_type & y )
54  {
55  }
56 };
57 
58 //----------------------------------------------------------------------------
59 //----------------------------------------------------------------------------
60 
61 } // namespace Stokhos
62 
63 #endif /* #ifndef STOKHOS_CUDA_FLAT_SPARSE_3_TENSOR_HPP */
CRS matrix of dense blocks.
Sparse product tensor with replicated entries to provide subsets with a given coordinate.