20 #ifndef RAJA_pattern_tensor_ET_TensorLiteral_HPP
21 #define RAJA_pattern_tensor_ET_TensorLiteral_HPP
23 #include "RAJA/config.hpp"
41 template<
typename TENSOR_TYPE>
51 static constexpr camp::idx_t
s_num_dims = result_type::s_num_dims;
58 return tensor_type::s_dim_elem(dim);
66 template<
typename TILE_TYPE>
75 void print_ast()
const { printf(
"TensorLiteral()"); }
84 template<
typename RHS>
87 typename
std::enable_if<
88 std::is_base_of<TensorRegisterConcreteBase, RHS>::value>::type>
RAJA header file defining SIMD/SIMT register operations.
Definition: ExpressionTemplateBase.hpp:72
Definition: TensorLiteral.hpp:43
TENSOR_TYPE tensor_type
Definition: TensorLiteral.hpp:46
RAJA_INLINE RAJA_HOST_DEVICE void print_ast() const
Definition: TensorLiteral.hpp:75
RAJA_INLINE RAJA_HOST_DEVICE TensorLiteral(tensor_type const &value)
Definition: TensorLiteral.hpp:64
tensor_type result_type
Definition: TensorLiteral.hpp:48
typename TENSOR_TYPE::element_type element_type
Definition: TensorLiteral.hpp:47
RAJA_INLINE constexpr RAJA_HOST_DEVICE index_type getDimSize(index_type dim) const
Definition: TensorLiteral.hpp:56
RAJA_INLINE RAJA_HOST_DEVICE result_type eval(TILE_TYPE const &) const
Definition: TensorLiteral.hpp:67
RAJA::Index_type index_type
Definition: TensorLiteral.hpp:49
static constexpr camp::idx_t s_num_dims
Definition: TensorLiteral.hpp:51
Header file for common RAJA internal macro definitions.
#define RAJA_HOST_DEVICE
Definition: macros.hpp:65
Definition: AlignedRangeIndexSetBuilders.cpp:35
std::ptrdiff_t Index_type
Definition: types.hpp:226
Definition: ListSegment.hpp:416
RAJA_INLINE static constexpr RAJA_HOST_DEVICE return_type normalize(RHS const &rhs)
Definition: TensorLiteral.hpp:95
Definition: normalizeOperand.hpp:44