Compadre
1.2.0
|
Creates 1D subviews of data from a 2D view, generally constructed with CreateNDSliceOnDeviceView. More...
Creates 1D subviews of data from a 2D view, generally constructed with CreateNDSliceOnDeviceView.
Definition at line 12 of file Compadre_Evaluator.hpp.
#include <Compadre_Evaluator.hpp>
Public Member Functions | |
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 () |
Public Attributes | |
T | _data_in |
T2 | _data_original_view |
bool | _scalar_as_vector_if_needed |
|
inline |
Definition at line 18 of file Compadre_Evaluator.hpp.
|
inline |
Definition at line 49 of file Compadre_Evaluator.hpp.
|
inline |
Definition at line 24 of file Compadre_Evaluator.hpp.
|
inline |
Definition at line 35 of file Compadre_Evaluator.hpp.
T Compadre::SubviewND< T, T2, T3 >::_data_in |
Definition at line 14 of file Compadre_Evaluator.hpp.
T2 Compadre::SubviewND< T, T2, T3 >::_data_original_view |
Definition at line 15 of file Compadre_Evaluator.hpp.
bool Compadre::SubviewND< T, T2, T3 >::_scalar_as_vector_if_needed |
Definition at line 16 of file Compadre_Evaluator.hpp.