mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-13 08:31:48 +08:00
Product of empty array must be 1 and not 0.
This commit is contained in:
parent
03326d9155
commit
5be00b0e29
@ -188,7 +188,7 @@ EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE t array_prod(const array<t, n>& a) {
|
||||
}
|
||||
template<typename t>
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE t array_prod(const array<t, 0>& /*a*/) {
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
template<typename t>
|
||||
|
Loading…
x
Reference in New Issue
Block a user