mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-13 09:53:13 +08:00
Fix a bug in TensorIndexList.h
This commit is contained in:
parent
d46d726e9d
commit
b1aa07a8d3
@ -279,7 +279,7 @@ struct tuple_coeff<0, ValueT> {
|
|||||||
}
|
}
|
||||||
template <typename... T>
|
template <typename... T>
|
||||||
EIGEN_DEVICE_FUNC static constexpr bool value_known_statically(const Index i, const IndexTuple<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>
|
template <typename... T>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user