diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2018-08-30 17:14:52 +0200 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2018-08-30 17:14:52 +0200 |
commit | 023ed6b9a83b89bdba7c4b689bc9e69acd1af79f (patch) | |
tree | b588853e242067a00ba41ad41d69a8fae7006163 /unsupported/Eigen/CXX11/src/util | |
parent | c2f4e8c08e1fc74f426f21ba4e05decaa7dbf53b (diff) |
Product of empty array must be 1 and not 0.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/util')
-rw-r--r-- | unsupported/Eigen/CXX11/src/util/EmulateCXX11Meta.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/util/EmulateCXX11Meta.h b/unsupported/Eigen/CXX11/src/util/EmulateCXX11Meta.h index f3aa1b144..8a536faf6 100644 --- a/unsupported/Eigen/CXX11/src/util/EmulateCXX11Meta.h +++ b/unsupported/Eigen/CXX11/src/util/EmulateCXX11Meta.h @@ -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> |