20 #ifndef RAJA_pattern_tensor_ET_TensorNegate_HPP
21 #define RAJA_pattern_tensor_ET_TensorNegate_HPP
23 #include "RAJA/config.hpp"
40 template<
typename ET_TYPE>
52 static constexpr camp::idx_t
s_num_dims = ET_TYPE::s_num_dims;
64 return m_tensor.getDimSize(dim);
67 template<
typename TILE_TYPE>
70 return m_tensor.eval(
tile).scale(-1);
RAJA header file defining SIMD/SIMT register operations.
Definition: ExpressionTemplateBase.hpp:72
Definition: TensorNegate.hpp:42
typename ET_TYPE::index_type index_type
Definition: TensorNegate.hpp:48
RAJA_INLINE RAJA_HOST_DEVICE void print_ast() const
Definition: TensorNegate.hpp:76
RAJA_INLINE RAJA_HOST_DEVICE result_type eval(TILE_TYPE const &tile) const
Definition: TensorNegate.hpp:68
typename tensor_type::element_type element_type
Definition: TensorNegate.hpp:47
tensor_type result_type
Definition: TensorNegate.hpp:50
ET_TYPE rhs_type
Definition: TensorNegate.hpp:45
RAJA_INLINE RAJA_HOST_DEVICE TensorNegate(rhs_type const &tensor)
Definition: TensorNegate.hpp:57
static constexpr camp::idx_t s_num_dims
Definition: TensorNegate.hpp:52
typename ET_TYPE::result_type tensor_type
Definition: TensorNegate.hpp:46
RAJA_INLINE constexpr RAJA_HOST_DEVICE index_type getDimSize(index_type dim) const
Definition: TensorNegate.hpp:62
typename ET_TYPE::tile_type tile_type
Definition: TensorNegate.hpp:51
Header file for common RAJA internal macro definitions.
#define RAJA_HOST_DEVICE
Definition: macros.hpp:65
Definition: AlignedRangeIndexSetBuilders.cpp:35
RAJA_HOST_DEVICE RAJA_INLINE void tile(CONTEXT const &ctx, TILE_T tile_size, SEGMENT const &segment, BODY const &body)
Definition: launch_core.hpp:589