10 #ifndef EIGEN_CXX11WORKAROUNDS_H
11 #define EIGEN_CXX11WORKAROUNDS_H
16 #if defined(__INTEL_COMPILER) && (__INTEL_COMPILER < 1310)
17 #error Intel Compiler only supports required C++ features since version 13.1.
20 #elif defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6))
26 #pragma GCC diagnostic error "-Wfatal-errors"
27 #error GNU C++ Compiler (g++) only supports required C++ features since version 4.6.
38 template<std::
size_t I_,
class T> constexpr
inline T&
array_get(std::vector<T>& a) {
return a[I_]; }
39 template<std::
size_t I_,
class T> constexpr
inline T&&
array_get(std::vector<T>&& a) {
return a[I_]; }
40 template<std::
size_t I_,
class T> constexpr
inline T const&
array_get(std::vector<T>
const& a) {
return a[I_]; }
56 #if defined(__GNUC__) && !defined(__INTEL_COMPILER)
57 #define EIGEN_TPL_PP_SPEC_HACK_DEF(mt, n) mt... n
58 #define EIGEN_TPL_PP_SPEC_HACK_DEFC(mt, n) , EIGEN_TPL_PP_SPEC_HACK_DEF(mt, n)
59 #define EIGEN_TPL_PP_SPEC_HACK_USE(n) n...
60 #define EIGEN_TPL_PP_SPEC_HACK_USEC(n) , n...
62 #define EIGEN_TPL_PP_SPEC_HACK_DEF(mt, n)
63 #define EIGEN_TPL_PP_SPEC_HACK_DEFC(mt, n)
64 #define EIGEN_TPL_PP_SPEC_HACK_USE(n)
65 #define EIGEN_TPL_PP_SPEC_HACK_USEC(n)
constexpr T array_get(const numeric_list< T, a, as... > &)
: TensorContractionSycl.h, provides various tensor contraction kernel for SYCL backend