diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-02-27 12:57:13 -0800 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-02-27 12:57:13 -0800 |
commit | 2386fc8528fa8f923b0300af6ddc4cd46a178afd (patch) | |
tree | 4ad32d535ce9e8874ac9bd8a6e16ff7da0f02118 /Eigen/src/Core/util | |
parent | 05089aba75f8bf1ab3d1bfd566decfc08ce729f9 (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')
-rw-r--r-- | Eigen/src/Core/util/Constants.h | 6 |
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 |