Macros
TensorMacros.h File Reference

Go to the source code of this file.

Macros

#define EIGEN_DEVICE_REF   &
 
#define EIGEN_SFINAE_ENABLE_IF(__condition__)   typename internal::enable_if< ( __condition__ ) , int >::type = 0
 
#define EIGEN_SYCL_LOCAL_MEM_UNSET_OR_OFF   1
 
#define EIGEN_SYCL_LOCAL_MEM_UNSET_OR_ON   1
 
#define EIGEN_SYCL_TRY_CATCH(X)
 
#define EIGEN_TENSOR_INHERIT_ASSIGNMENT_EQUAL_OPERATOR(Derived)   EIGEN_INHERIT_ASSIGNMENT_EQUAL_OPERATOR(Derived)
 
#define EIGEN_TENSOR_INHERIT_ASSIGNMENT_OPERATORS(Derived)
 

Macro Definition Documentation

◆ EIGEN_DEVICE_REF

#define EIGEN_DEVICE_REF   &

Definition at line 50 of file TensorMacros.h.

◆ EIGEN_SFINAE_ENABLE_IF

#define EIGEN_SFINAE_ENABLE_IF (   __condition__)    typename internal::enable_if< ( __condition__ ) , int >::type = 0

use this macro in sfinae selection in templated functions

template<typename T, typename std::enable_if< isBanana<T>::value , int >type = 0

void foo(){}

becomes =>

template<typename TopoType, SFINAE_ENABLE_IF( isBanana<T>::value )

void foo(){}

Definition at line 43 of file TensorMacros.h.

◆ EIGEN_SYCL_LOCAL_MEM_UNSET_OR_OFF

#define EIGEN_SYCL_LOCAL_MEM_UNSET_OR_OFF   1

Definition at line 70 of file TensorMacros.h.

◆ EIGEN_SYCL_LOCAL_MEM_UNSET_OR_ON

#define EIGEN_SYCL_LOCAL_MEM_UNSET_OR_ON   1

Definition at line 69 of file TensorMacros.h.

◆ EIGEN_SYCL_TRY_CATCH

#define EIGEN_SYCL_TRY_CATCH (   X)
Value:
do { \
EIGEN_TRY {X;} \
EIGEN_CATCH(const cl::sycl::exception& e) { \
EIGEN_THROW_X(std::runtime_error("SYCL exception at " + \
std::string(__FILE__) + ":" + \
std::to_string(__LINE__) + "\n" + \
e.what())); \
} \
} while (false)

Definition at line 54 of file TensorMacros.h.

◆ EIGEN_TENSOR_INHERIT_ASSIGNMENT_EQUAL_OPERATOR

#define EIGEN_TENSOR_INHERIT_ASSIGNMENT_EQUAL_OPERATOR (   Derived)    EIGEN_INHERIT_ASSIGNMENT_EQUAL_OPERATOR(Derived)

Definition at line 84 of file TensorMacros.h.

◆ EIGEN_TENSOR_INHERIT_ASSIGNMENT_OPERATORS

#define EIGEN_TENSOR_INHERIT_ASSIGNMENT_OPERATORS (   Derived)
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
X
#define X
Definition: icosphere.cpp:20
EIGEN_TENSOR_INHERIT_ASSIGNMENT_EQUAL_OPERATOR
#define EIGEN_TENSOR_INHERIT_ASSIGNMENT_EQUAL_OPERATOR(Derived)
Definition: TensorMacros.h:84


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:52