RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
Public Types | Public Member Functions | Static Public Attributes | List of all members
RAJA::internal::expt::ET::TensorLiteral< TENSOR_TYPE > Class Template Reference

#include <TensorLiteral.hpp>

Inheritance diagram for RAJA::internal::expt::ET::TensorLiteral< TENSOR_TYPE >:
RAJA::internal::expt::ET::TensorExpressionBase< TensorLiteral< TENSOR_TYPE > > RAJA::internal::expt::ET::TensorExpressionConcreteBase

Public Types

using self_type = TensorLiteral< TENSOR_TYPE >
 
using tensor_type = TENSOR_TYPE
 
using element_type = typename TENSOR_TYPE::element_type
 
using result_type = tensor_type
 
using index_type = RAJA::Index_type
 
- Public Types inherited from RAJA::internal::expt::ET::TensorExpressionBase< TensorLiteral< TENSOR_TYPE > >
using self_type = TensorLiteral< TENSOR_TYPE >
 

Public Member Functions

RAJA_INLINE constexpr RAJA_HOST_DEVICE index_type getDimSize (index_type dim) const
 
RAJA_INLINE RAJA_HOST_DEVICE TensorLiteral (tensor_type const &value)
 
template<typename TILE_TYPE >
RAJA_INLINE RAJA_HOST_DEVICE result_type eval (TILE_TYPE const &) const
 
RAJA_INLINE RAJA_HOST_DEVICE void print_ast () const
 
- Public Member Functions inherited from RAJA::internal::expt::ET::TensorExpressionBase< TensorLiteral< TENSOR_TYPE > >
RAJA_INLINE constexpr RAJA_HOST_DEVICE camp::idx_t getDimBegin (camp::idx_t) const
 
RAJA_SUPPRESS_HD_WARN RAJA_INLINE RAJA_HOST_DEVICE TensorAdd< self_type, normalize_operand_t< RHS > > operator+ (RHS const &rhs) const
 
RAJA_SUPPRESS_HD_WARN RAJA_INLINE RAJA_HOST_DEVICE TensorSubtract< self_type, normalize_operand_t< RHS > > operator- (RHS const &rhs) const
 
RAJA_SUPPRESS_HD_WARN RAJA_INLINE RAJA_HOST_DEVICE TensorNegate< self_typeoperator- () const
 
RAJA_SUPPRESS_HD_WARN RAJA_INLINE RAJA_HOST_DEVICE TensorMultiply< self_type, normalize_operand_t< RHS > > operator* (RHS const &rhs) const
 
RAJA_SUPPRESS_HD_WARN RAJA_INLINE RAJA_HOST_DEVICE TensorDivide< self_type, normalize_operand_t< RHS > > operator/ (RHS const &rhs) const
 
RAJA_SUPPRESS_HD_WARN RAJA_INLINE RAJA_HOST_DEVICE TensorTranspose< self_typetranspose () const
 

Static Public Attributes

static constexpr camp::idx_t s_num_dims = result_type::s_num_dims
 

Member Typedef Documentation

◆ self_type

template<typename TENSOR_TYPE >
using RAJA::internal::expt::ET::TensorLiteral< TENSOR_TYPE >::self_type = TensorLiteral<TENSOR_TYPE>

◆ tensor_type

template<typename TENSOR_TYPE >
using RAJA::internal::expt::ET::TensorLiteral< TENSOR_TYPE >::tensor_type = TENSOR_TYPE

◆ element_type

template<typename TENSOR_TYPE >
using RAJA::internal::expt::ET::TensorLiteral< TENSOR_TYPE >::element_type = typename TENSOR_TYPE::element_type

◆ result_type

template<typename TENSOR_TYPE >
using RAJA::internal::expt::ET::TensorLiteral< TENSOR_TYPE >::result_type = tensor_type

◆ index_type

template<typename TENSOR_TYPE >
using RAJA::internal::expt::ET::TensorLiteral< TENSOR_TYPE >::index_type = RAJA::Index_type

Constructor & Destructor Documentation

◆ TensorLiteral()

template<typename TENSOR_TYPE >
RAJA_INLINE RAJA_HOST_DEVICE RAJA::internal::expt::ET::TensorLiteral< TENSOR_TYPE >::TensorLiteral ( tensor_type const &  value)
inlineexplicit

Member Function Documentation

◆ getDimSize()

template<typename TENSOR_TYPE >
RAJA_INLINE constexpr RAJA_HOST_DEVICE index_type RAJA::internal::expt::ET::TensorLiteral< TENSOR_TYPE >::getDimSize ( index_type  dim) const
inlineconstexpr

◆ eval()

template<typename TENSOR_TYPE >
template<typename TILE_TYPE >
RAJA_INLINE RAJA_HOST_DEVICE result_type RAJA::internal::expt::ET::TensorLiteral< TENSOR_TYPE >::eval ( TILE_TYPE const &  ) const
inline

◆ print_ast()

template<typename TENSOR_TYPE >
RAJA_INLINE RAJA_HOST_DEVICE void RAJA::internal::expt::ET::TensorLiteral< TENSOR_TYPE >::print_ast ( ) const
inline

Member Data Documentation

◆ s_num_dims

template<typename TENSOR_TYPE >
constexpr camp::idx_t RAJA::internal::expt::ET::TensorLiteral< TENSOR_TYPE >::s_num_dims = result_type::s_num_dims
staticconstexpr

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