diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-01-04 15:26:32 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-01-04 15:26:32 +0000 |
commit | 15ca6659acea545178116096bff3e42068b4f4cb (patch) | |
tree | 0f4093c77a3312b69dff071db7fd1ad14a3d6d25 /Eigen/src/Core/util/Memory.h | |
parent | d9e5fd393a48db368dd90cf7119ebb3d774111cb (diff) |
* the 4th template param of Matrix is now Options. One bit for storage
order, one bit for enabling/disabling auto-alignment. If you want to
disable, do:
Matrix<float,4,1,Matrix_DontAlign>
The Matrix_ prefix is the only way I can see to avoid
ambiguity/pollution. The old RowMajor, ColMajor constants are
deprecated, remain for now.
* this prompted several improvements in matrix_storage. ei_aligned_array
renamed to ei_matrix_array and moved there. The %16==0 tests are now
much more centralized in 1 place there.
* unalignedassert test: updated
* update FindEigen2.cmake from KDElibs
* determinant test: use VERIFY_IS_APPROX to fix false positives; add
testing of 1 big matrix
Diffstat (limited to 'Eigen/src/Core/util/Memory.h')
-rw-r--r-- | Eigen/src/Core/util/Memory.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index 35b6b4ab9..0e49ffeae 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -31,25 +31,6 @@ extern "C" int posix_memalign (void **, size_t, size_t) throw (); #endif -/** \internal - * Static array automatically aligned if the total byte size is a multiple of 16 - */ -template <typename T, int Size, bool Align> struct ei_aligned_array -{ - EIGEN_ALIGN_128 T array[Size]; - - ei_aligned_array() - { - ei_assert((reinterpret_cast<size_t>(array) & 0xf) == 0 - && "this assertion is explained here: http://eigen.tuxfamily.org/api/UnalignedArrayAssert.html **** READ THIS WEB PAGE !!! ****"); - } -}; - -template <typename T, int Size> struct ei_aligned_array<T,Size,false> -{ - T array[Size]; -}; - struct ei_byte_forcing_aligned_malloc { unsigned char c; // sizeof must be 1. |