aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-08-14 15:49:14 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-08-14 15:49:14 -0400
commit16abc0ba7f90293289e0fc7866f07d185d500ba6 (patch)
tree42e0c879c45c6c1a7b734e4b1fd028c53a175fde /Eigen/src
parent22ae236d4ea404122ff68966f1572a236f239335 (diff)
try to support 16 bit platforms... optimistic, but can't hurt
Diffstat (limited to 'Eigen/src')
-rw-r--r--Eigen/src/Core/util/Constants.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/Eigen/src/Core/util/Constants.h b/Eigen/src/Core/util/Constants.h
index 98b3bd2e4..21e7f62c3 100644
--- a/Eigen/src/Core/util/Constants.h
+++ b/Eigen/src/Core/util/Constants.h
@@ -2,7 +2,7 @@
// for linear algebra.
//
// Copyright (C) 2008-2009 Gael Guennebaud <g.gael@free.fr>
-// Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com>
+// Copyright (C) 2007-2009 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@ -39,10 +39,9 @@
* Also, disabling compiler warnings for integer overflow, sounds like a bad idea.
* - It should be a prime number, because for example the old value 10000 led to bugs with 100x100 matrices.
*
- * If you wish to port Eigen to a platform where sizeof(int)==2, it is perfectly possible to set Dynamic to, say, 97.
- * However, changing the value of Dynamic breaks the ABI, as Dynamic is often used as a template parameter for Matrix.
+ * Changing the value of Dynamic breaks the ABI, as Dynamic is often used as a template parameter for Matrix.
*/
-const int Dynamic = 33331;
+const int Dynamic = sizeof(int) >= 4 ? 33331 : 101;
/** This value means +Infinity; it is currently used only as the p parameter to MatrixBase::lpNorm<int>().
* The value Infinity there means the L-infinity norm.