diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2017-07-08 21:58:44 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2017-07-08 21:58:44 -0700 |
commit | 5ac27d5b519d63abeadd2537e2c607271f47536f (patch) | |
tree | 7735450364d709d3d026de4e5e89f5bf618e4466 /unsupported/Eigen | |
parent | c5a241ab9b4068dea13449ca6d596b79613df3e1 (diff) |
Avoid relying on cxx11 features when possible.
Diffstat (limited to 'unsupported/Eigen')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h b/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h index 4b165399f..2b1968de1 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h @@ -101,7 +101,7 @@ struct TensorEvaluator<const TensorTraceOp<Dims, ArgType>, Device> }; EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorEvaluator(const XprType& op, const Device& device) - : m_impl(op.expression(), device), m_device(device) + : m_impl(op.expression(), device), m_traceDim(1), m_device(device) { EIGEN_STATIC_ASSERT((NumOutputDims >= 0), YOU_MADE_A_PROGRAMMING_MISTAKE); @@ -276,7 +276,7 @@ struct TensorEvaluator<const TensorTraceOp<Dims, ArgType>, Device> array<bool, NumInputDims> m_reduced; array<Index, NumReducedDims> m_reducedDims; // Initialize the size of the trace dimension - Index m_traceDim = 1; + Index m_traceDim; array<Index, NumOutputDims> m_outputStrides; array<Index, NumReducedDims> m_reducedStrides; array<Index, NumOutputDims> m_preservedStrides; |