RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
RAJA::internal::expt::ET::OperatorTraits< LHS_TYPE, RHS_TYPE, ENABLE > Struct Template Reference

#include <BinaryOperatorTraits.hpp>

Public Types

using result_type = typename LHS_TYPE::result_type
 

Static Public Member Functions

RAJA_INLINE static RAJA_HOST_DEVICE void print_ast ()
 
RAJA_INLINE static RAJA_HOST_DEVICE int getDimSize (int dim, LHS_TYPE const &lhs, RHS_TYPE const &rhs)
 

Static Public Attributes

static constexpr camp::idx_t s_num_dims = LHS_TYPE::s_num_dims
 

Detailed Description

template<typename LHS_TYPE, typename RHS_TYPE, class ENABLE = void>
struct RAJA::internal::expt::ET::OperatorTraits< LHS_TYPE, RHS_TYPE, ENABLE >

Provides default operations for add, subtract and divide

For the most part, this is just element wise operations between compatible tensors.

There are specializations that handle when one operand is a scalar

Member Typedef Documentation

◆ result_type

template<typename LHS_TYPE , typename RHS_TYPE , class ENABLE = void>
using RAJA::internal::expt::ET::OperatorTraits< LHS_TYPE, RHS_TYPE, ENABLE >::result_type = typename LHS_TYPE::result_type

Member Function Documentation

◆ print_ast()

template<typename LHS_TYPE , typename RHS_TYPE , class ENABLE = void>
RAJA_INLINE static RAJA_HOST_DEVICE void RAJA::internal::expt::ET::OperatorTraits< LHS_TYPE, RHS_TYPE, ENABLE >::print_ast ( )
inlinestatic

◆ getDimSize()

template<typename LHS_TYPE , typename RHS_TYPE , class ENABLE = void>
RAJA_INLINE static RAJA_HOST_DEVICE int RAJA::internal::expt::ET::OperatorTraits< LHS_TYPE, RHS_TYPE, ENABLE >::getDimSize ( int  dim,
LHS_TYPE const &  lhs,
RHS_TYPE const &  rhs 
)
inlinestatic

Member Data Documentation

◆ s_num_dims

template<typename LHS_TYPE , typename RHS_TYPE , class ENABLE = void>
constexpr camp::idx_t RAJA::internal::expt::ET::OperatorTraits< LHS_TYPE, RHS_TYPE, ENABLE >::s_num_dims = LHS_TYPE::s_num_dims
staticconstexpr

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