diff options
author | Changming Sun <me@cpp.io> | 2020-04-10 20:48:54 +0000 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-04-13 18:22:03 +0000 |
commit | b1aa07a8d32e5a9dd52dd8a868654326039167e4 (patch) | |
tree | a5e947ea5d62a1adcd60a4fa1d85f9313771c596 /unsupported/Eigen/CXX11 | |
parent | d46d726e9d06416c7d1d5a81bdeae04c629f93d8 (diff) |
Fix a bug in TensorIndexList.h
Diffstat (limited to 'unsupported/Eigen/CXX11')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h b/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h index 2a3398d67..0e9133c49 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h @@ -279,7 +279,7 @@ struct tuple_coeff<0, ValueT> { } template <typename... T> EIGEN_DEVICE_FUNC static constexpr bool value_known_statically(const Index i, const IndexTuple<T...>&) { - return is_compile_time_constant<typename IndexTupleExtractor<0, T...>::ValType>::value & (i == 0); + return is_compile_time_constant<typename IndexTupleExtractor<0, T...>::ValType>::value && (i == 0); } template <typename... T> |