Creates 1D subviews of data from a 2D view, generally constructed with CreateNDSliceOnDeviceView.
More...
template<typename T, typename T2, typename T3 = void>
struct Compadre::SubviewND< T, T2, T3 >
Creates 1D subviews of data from a 2D view, generally constructed with CreateNDSliceOnDeviceView.
Definition at line 20 of file Compadre_Evaluator.hpp.
#include <Compadre_Evaluator.hpp>
|
| SubviewND (T data_in, T2 data_original_view, bool scalar_as_vector_if_needed) |
|
auto | get1DView (const int column_num) -> decltype(Kokkos::subview(_data_in, Kokkos::ALL, column_num)) |
|
auto | get2DView (const int column_num, const int block_size) -> decltype(Kokkos::subview(_data_in, Kokkos::ALL, Kokkos::make_pair(column_num *block_size,(column_num+1) *block_size))) |
|
T2 | copyToAndReturnOriginalView () |
|
◆ SubviewND()
template<typename T , typename T2 , typename T3 = void>
◆ copyToAndReturnOriginalView()
template<typename T , typename T2 , typename T3 = void>
◆ get1DView()
template<typename T , typename T2 , typename T3 = void>
auto Compadre::SubviewND< T, T2, T3 >::get1DView |
( |
const int |
column_num | ) |
-> decltype(Kokkos::subview(_data_in, Kokkos::ALL, column_num)) |
|
inline |
◆ get2DView()
template<typename T , typename T2 , typename T3 = void>
auto Compadre::SubviewND< T, T2, T3 >::get2DView |
( |
const int |
column_num, |
|
|
const int |
block_size |
|
) |
| -> decltype(Kokkos::subview(_data_in, Kokkos::ALL,
Kokkos::make_pair(column_num*block_size, (column_num+1)*block_size))) |
|
inline |
◆ _data_in
template<typename T , typename T2 , typename T3 = void>
◆ _data_original_view
template<typename T , typename T2 , typename T3 = void>
◆ _scalar_as_vector_if_needed
template<typename T , typename T2 , typename T3 = void>
The documentation for this struct was generated from the following file: