Classes | Namespaces | Macros
Assign_MKL.h File Reference

Go to the source code of this file.

Classes

class  Eigen::internal::vml_assign_traits< Dst, Src >
 

Namespaces

 Eigen
 
 Eigen::internal
 

Macros

#define EIGEN_MKL_VML_DECLARE_POW_CALL(EIGENOP, VMLOP, EIGENTYPE, VMLTYPE, VMLMODE)
 
#define EIGEN_MKL_VML_DECLARE_UNARY_CALL(EIGENOP, VMLOP, EIGENTYPE, VMLTYPE, VMLMODE)
 
#define EIGEN_MKL_VML_DECLARE_UNARY_CALLS(EIGENOP, VMLOP, VMLMODE)
 
#define EIGEN_MKL_VML_DECLARE_UNARY_CALLS_CPLX(EIGENOP, VMLOP, VMLMODE)
 
#define EIGEN_MKL_VML_DECLARE_UNARY_CALLS_REAL(EIGENOP, VMLOP, VMLMODE)
 
#define EIGEN_PP_EXPAND(ARG)   ARG
 
#define EIGEN_VMLMODE_EXPAND__
 
#define EIGEN_VMLMODE_EXPAND_LA   , VML_HA
 
#define EIGEN_VMLMODE_PREFIX(VMLMODE)   EIGEN_CAT(EIGEN_VMLMODE_PREFIX_,VMLMODE)
 
#define EIGEN_VMLMODE_PREFIX__   v
 
#define EIGEN_VMLMODE_PREFIX_LA   vm
 

Macro Definition Documentation

#define EIGEN_MKL_VML_DECLARE_POW_CALL (   EIGENOP,
  VMLOP,
  EIGENTYPE,
  VMLTYPE,
  VMLMODE 
)
Value:
template< typename DstXprType, typename SrcXprNested, typename Plain> \
struct Assignment<DstXprType, CwiseBinaryOp<scalar_##EIGENOP##_op<EIGENTYPE,EIGENTYPE>, SrcXprNested, \
const CwiseNullaryOp<internal::scalar_constant_op<EIGENTYPE>,Plain> >, assign_op<EIGENTYPE,EIGENTYPE>, \
Dense2Dense, typename enable_if<vml_assign_traits<DstXprType,SrcXprNested>::EnableVml>::type> { \
typedef CwiseBinaryOp<scalar_##EIGENOP##_op<EIGENTYPE,EIGENTYPE>, SrcXprNested, \
const CwiseNullaryOp<internal::scalar_constant_op<EIGENTYPE>,Plain> > SrcXprType; \
static void run(DstXprType &dst, const SrcXprType &src, const assign_op<EIGENTYPE,EIGENTYPE> &/*func*/) { \
eigen_assert(dst.rows() == src.rows() && dst.cols() == src.cols()); \
VMLTYPE exponent = reinterpret_cast<const VMLTYPE&>(src.rhs().functor().m_other); \
if(vml_assign_traits<DstXprType,SrcXprNested>::Traversal==LinearTraversal) \
{ \
VMLOP( dst.size(), (const VMLTYPE*)src.lhs().data(), exponent, \
(VMLTYPE*)dst.data() EIGEN_PP_EXPAND(EIGEN_VMLMODE_EXPAND_##VMLMODE) ); \
} else { \
const Index outerSize = dst.outerSize(); \
for(Index outer = 0; outer < outerSize; ++outer) { \
const EIGENTYPE *src_ptr = src.IsRowMajor ? &(src.lhs().coeffRef(outer,0)) : \
&(src.lhs().coeffRef(0, outer)); \
EIGENTYPE *dst_ptr = dst.IsRowMajor ? &(dst.coeffRef(outer,0)) : &(dst.coeffRef(0, outer)); \
VMLOP( dst.innerSize(), (const VMLTYPE*)src_ptr, exponent, \
(VMLTYPE*)dst_ptr EIGEN_PP_EXPAND(EIGEN_VMLMODE_EXPAND_##VMLMODE)); \
} \
} \
} \
};
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
#define eigen_assert(x)
Definition: Macros.h:577
#define EIGEN_PP_EXPAND(ARG)
Definition: Assign_MKL.h:69
void run(Expr &expr, Dev &dev)
Definition: TensorSyclRun.h:33

Definition at line 140 of file Assign_MKL.h.

#define EIGEN_MKL_VML_DECLARE_UNARY_CALL (   EIGENOP,
  VMLOP,
  EIGENTYPE,
  VMLTYPE,
  VMLMODE 
)
Value:
template< typename DstXprType, typename SrcXprNested> \
struct Assignment<DstXprType, CwiseUnaryOp<scalar_##EIGENOP##_op<EIGENTYPE>, SrcXprNested>, assign_op<EIGENTYPE,EIGENTYPE>, \
Dense2Dense, typename enable_if<vml_assign_traits<DstXprType,SrcXprNested>::EnableVml>::type> { \
typedef CwiseUnaryOp<scalar_##EIGENOP##_op<EIGENTYPE>, SrcXprNested> SrcXprType; \
static void run(DstXprType &dst, const SrcXprType &src, const assign_op<EIGENTYPE,EIGENTYPE> &/*func*/) { \
eigen_assert(dst.rows() == src.rows() && dst.cols() == src.cols()); \
if(vml_assign_traits<DstXprType,SrcXprNested>::Traversal==LinearTraversal) { \
VMLOP(dst.size(), (const VMLTYPE*)src.nestedExpression().data(), \
(VMLTYPE*)dst.data() EIGEN_PP_EXPAND(EIGEN_VMLMODE_EXPAND_##VMLMODE) ); \
} else { \
const Index outerSize = dst.outerSize(); \
for(Index outer = 0; outer < outerSize; ++outer) { \
const EIGENTYPE *src_ptr = src.IsRowMajor ? &(src.nestedExpression().coeffRef(outer,0)) : \
&(src.nestedExpression().coeffRef(0, outer)); \
EIGENTYPE *dst_ptr = dst.IsRowMajor ? &(dst.coeffRef(outer,0)) : &(dst.coeffRef(0, outer)); \
VMLOP( dst.innerSize(), (const VMLTYPE*)src_ptr, \
(VMLTYPE*)dst_ptr EIGEN_PP_EXPAND(EIGEN_VMLMODE_EXPAND_##VMLMODE)); \
} \
} \
} \
}; \
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
#define eigen_assert(x)
Definition: Macros.h:577
#define EIGEN_PP_EXPAND(ARG)
Definition: Assign_MKL.h:69
void run(Expr &expr, Dev &dev)
Definition: TensorSyclRun.h:33

Definition at line 82 of file Assign_MKL.h.

#define EIGEN_MKL_VML_DECLARE_UNARY_CALLS (   EIGENOP,
  VMLOP,
  VMLMODE 
)
Value:
EIGEN_MKL_VML_DECLARE_UNARY_CALLS_REAL(EIGENOP, VMLOP, VMLMODE) \
#define EIGEN_MKL_VML_DECLARE_UNARY_CALLS_REAL(EIGENOP, VMLOP, VMLMODE)
Definition: Assign_MKL.h:106
#define EIGEN_MKL_VML_DECLARE_UNARY_CALLS_CPLX(EIGENOP, VMLOP, VMLMODE)
Definition: Assign_MKL.h:110

Definition at line 114 of file Assign_MKL.h.

#define EIGEN_MKL_VML_DECLARE_UNARY_CALLS_CPLX (   EIGENOP,
  VMLOP,
  VMLMODE 
)
Value:
EIGEN_MKL_VML_DECLARE_UNARY_CALL(EIGENOP, EIGEN_CAT(EIGEN_VMLMODE_PREFIX(VMLMODE),c##VMLOP), scomplex, MKL_Complex8, VMLMODE) \
EIGEN_MKL_VML_DECLARE_UNARY_CALL(EIGENOP, EIGEN_CAT(EIGEN_VMLMODE_PREFIX(VMLMODE),z##VMLOP), dcomplex, MKL_Complex16, VMLMODE)
#define EIGEN_CAT(a, b)
Definition: Macros.h:479
#define EIGEN_MKL_VML_DECLARE_UNARY_CALL(EIGENOP, VMLOP, EIGENTYPE, VMLTYPE, VMLMODE)
Definition: Assign_MKL.h:82
std::complex< float > scomplex
Definition: MKL_support.h:114
std::complex< double > dcomplex
Definition: MKL_support.h:113
#define EIGEN_VMLMODE_PREFIX(VMLMODE)
Definition: Assign_MKL.h:80

Definition at line 110 of file Assign_MKL.h.

#define EIGEN_MKL_VML_DECLARE_UNARY_CALLS_REAL (   EIGENOP,
  VMLOP,
  VMLMODE 
)
Value:
EIGEN_MKL_VML_DECLARE_UNARY_CALL(EIGENOP, EIGEN_CAT(EIGEN_VMLMODE_PREFIX(VMLMODE),s##VMLOP), float, float, VMLMODE) \
EIGEN_MKL_VML_DECLARE_UNARY_CALL(EIGENOP, EIGEN_CAT(EIGEN_VMLMODE_PREFIX(VMLMODE),d##VMLOP), double, double, VMLMODE)
#define EIGEN_CAT(a, b)
Definition: Macros.h:479
#define EIGEN_MKL_VML_DECLARE_UNARY_CALL(EIGENOP, VMLOP, EIGENTYPE, VMLTYPE, VMLMODE)
Definition: Assign_MKL.h:82
#define EIGEN_VMLMODE_PREFIX(VMLMODE)
Definition: Assign_MKL.h:80

Definition at line 106 of file Assign_MKL.h.

#define EIGEN_PP_EXPAND (   ARG)    ARG

Definition at line 69 of file Assign_MKL.h.

#define EIGEN_VMLMODE_EXPAND__

Definition at line 76 of file Assign_MKL.h.

#define EIGEN_VMLMODE_EXPAND_LA   , VML_HA

Definition at line 71 of file Assign_MKL.h.

#define EIGEN_VMLMODE_PREFIX (   VMLMODE)    EIGEN_CAT(EIGEN_VMLMODE_PREFIX_,VMLMODE)

Definition at line 80 of file Assign_MKL.h.

#define EIGEN_VMLMODE_PREFIX__   v

Definition at line 79 of file Assign_MKL.h.

#define EIGEN_VMLMODE_PREFIX_LA   vm

Definition at line 78 of file Assign_MKL.h.



hebiros
Author(s): Xavier Artache , Matthew Tesch
autogenerated on Thu Sep 3 2020 04:09:48