aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util/Constants.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2015-02-27 12:57:13 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2015-02-27 12:57:13 -0800
commit2386fc8528fa8f923b0300af6ddc4cd46a178afd (patch)
tree4ad32d535ce9e8874ac9bd8a6e16ff7da0f02118 /Eigen/src/Core/util/Constants.h
parent05089aba75f8bf1ab3d1bfd566decfc08ce729f9 (diff)
Added support for 32bit index on a per tensor/tensor expression. This enables us to use 32bit indices to evaluate expressions on GPU faster while keeping the ability to use 64 bit indices to manipulate large tensors on CPU in the same binary.
Diffstat (limited to 'Eigen/src/Core/util/Constants.h')
-rw-r--r--Eigen/src/Core/util/Constants.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/Constants.h b/Eigen/src/Core/util/Constants.h
index d1855b50b..fea75a004 100644
--- a/Eigen/src/Core/util/Constants.h
+++ b/Eigen/src/Core/util/Constants.h
@@ -296,7 +296,11 @@ enum {
/** Align the matrix itself if it is vectorizable fixed-size */
AutoAlign = 0,
/** Don't require alignment for the matrix itself (the array of coefficients, if dynamically allocated, may still be requested to be aligned) */ // FIXME --- clarify the situation
- DontAlign = 0x2
+ DontAlign = 0x2,
+ /** Use the DenseIndex type to index the matrix/array/tensor. Unless otherwise specified by defining EIGEN_DEFAULT_DENSE_INDEX_TYPE, DenseIndex is a ptrdiff_t. */
+ IndexDefault = 0,
+ /** Use 32bit signed integers to index the matrix/array/tensor. */
+ Index32Bit = 0x4
};
/** \ingroup enums