Compadre  1.5.7
Public Member Functions | Public Attributes | List of all members
Compadre::SubviewND< T, T2, enable_if_t<(T::rank< 2)> > Struct Template Reference

Creates 1D subviews of data from a 1D view, generally constructed with CreateNDSliceOnDeviceView. More...

Detailed Description

template<typename T, typename T2>
struct Compadre::SubviewND< T, T2, enable_if_t<(T::rank< 2)> >

Creates 1D subviews of data from a 1D view, generally constructed with CreateNDSliceOnDeviceView.

Definition at line 59 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))
 
auto get2DView (const int column_num, const int block_size) -> decltype(Kokkos::subview(_data_in, Kokkos::ALL))
 
T2 copyToAndReturnOriginalView ()
 

Public Attributes

_data_in
 
T2 _data_original_view
 
bool _scalar_as_vector_if_needed
 

Constructor & Destructor Documentation

◆ SubviewND()

template<typename T , typename T2 >
Compadre::SubviewND< T, T2, enable_if_t<(T::rank< 2)> >::SubviewND ( data_in,
T2  data_original_view,
bool  scalar_as_vector_if_needed 
)
inline

Definition at line 66 of file Compadre_Evaluator.hpp.

Member Function Documentation

◆ copyToAndReturnOriginalView()

template<typename T , typename T2 >
T2 Compadre::SubviewND< T, T2, enable_if_t<(T::rank< 2)> >::copyToAndReturnOriginalView ( )
inline

Definition at line 87 of file Compadre_Evaluator.hpp.

◆ get1DView()

template<typename T , typename T2 >
auto Compadre::SubviewND< T, T2, enable_if_t<(T::rank< 2)> >::get1DView ( const int  column_num) -> decltype(Kokkos::subview(_data_in, Kokkos::ALL))
inline

Definition at line 72 of file Compadre_Evaluator.hpp.

◆ get2DView()

template<typename T , typename T2 >
auto Compadre::SubviewND< T, T2, enable_if_t<(T::rank< 2)> >::get2DView ( const int  column_num,
const int  block_size 
) -> decltype(Kokkos::subview(_data_in, Kokkos::ALL))
inline

Definition at line 82 of file Compadre_Evaluator.hpp.

Member Data Documentation

◆ _data_in

template<typename T , typename T2 >
T Compadre::SubviewND< T, T2, enable_if_t<(T::rank< 2)> >::_data_in

Definition at line 62 of file Compadre_Evaluator.hpp.

◆ _data_original_view

template<typename T , typename T2 >
T2 Compadre::SubviewND< T, T2, enable_if_t<(T::rank< 2)> >::_data_original_view

Definition at line 63 of file Compadre_Evaluator.hpp.

◆ _scalar_as_vector_if_needed

template<typename T , typename T2 >
bool Compadre::SubviewND< T, T2, enable_if_t<(T::rank< 2)> >::_scalar_as_vector_if_needed

Definition at line 64 of file Compadre_Evaluator.hpp.


The documentation for this struct was generated from the following file: