Fix a bug in TensorIndexList.h

This commit is contained in:
Changming Sun 2020-04-10 20:48:54 +00:00 committed by Rasmus Munk Larsen
parent d46d726e9d
commit b1aa07a8d3

View File

@ -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>