mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Creating separate SYCL required PR for uncontroversial files.
This commit is contained in:
@@ -273,11 +273,11 @@ struct TensorEvaluator<const TensorTraceOp<Dims, ArgType>, Device>
|
||||
|
||||
Dimensions m_dimensions;
|
||||
TensorEvaluator<ArgType, Device> m_impl;
|
||||
// Initialize the size of the trace dimension
|
||||
Index m_traceDim;
|
||||
const Device& m_device;
|
||||
array<bool, NumInputDims> m_reduced;
|
||||
array<Index, NumReducedDims> m_reducedDims;
|
||||
// Initialize the size of the trace dimension
|
||||
Index m_traceDim;
|
||||
array<Index, NumOutputDims> m_outputStrides;
|
||||
array<Index, NumReducedDims> m_reducedStrides;
|
||||
array<Index, NumOutputDims> m_preservedStrides;
|
||||
|
||||
@@ -59,6 +59,7 @@ struct traits<Tensor<Scalar_, NumIndices_, Options_, IndexType_> >
|
||||
template <typename T> struct MakePointer {
|
||||
typedef T* Type;
|
||||
typedef T& RefType;
|
||||
typedef T ScalarType;
|
||||
|
||||
};
|
||||
typedef typename MakePointer<Scalar>::Type PointerType;
|
||||
@@ -80,6 +81,7 @@ struct traits<TensorFixedSize<Scalar_, Dimensions, Options_, IndexType_> >
|
||||
template <typename T> struct MakePointer {
|
||||
typedef T* Type;
|
||||
typedef T& RefType;
|
||||
typedef T ScalarType;
|
||||
|
||||
};
|
||||
typedef typename MakePointer<Scalar>::Type PointerType;
|
||||
@@ -105,6 +107,8 @@ struct traits<TensorMap<PlainObjectType, Options_, MakePointer_> >
|
||||
typedef MakePointer_<T> MakePointerT;
|
||||
typedef typename MakePointerT::Type Type;
|
||||
typedef typename MakePointerT::RefType RefType;
|
||||
typedef typename MakePointerT::ScalarType ScalarType;
|
||||
|
||||
|
||||
};
|
||||
typedef typename MakePointer<Scalar>::Type PointerType;
|
||||
|
||||
Reference in New Issue
Block a user