aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/Core/util')
-rwxr-xr-xEigen/src/Core/util/Meta.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index 301077fab..e9e2f1873 100755
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -359,6 +359,15 @@ template<> struct numeric_limits<unsigned long long>
EIGEN_DEVICE_FUNC
static unsigned long long (min)() { return 0; }
};
+template<> struct numeric_limits<bool>
+{
+ EIGEN_DEVICE_FUNC
+ static bool epsilon() { return false; }
+ EIGEN_DEVICE_FUNC
+ static bool (max)() { return true; }
+ EIGEN_DEVICE_FUNC
+ static bool (min)() { return false; }
+};
}