From 15ca6659acea545178116096bff3e42068b4f4cb Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 4 Jan 2009 15:26:32 +0000 Subject: * 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 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 --- Eigen/src/Core/util/Memory.h | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'Eigen/src/Core/util/Memory.h') 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 struct ei_aligned_array -{ - EIGEN_ALIGN_128 T array[Size]; - - ei_aligned_array() - { - ei_assert((reinterpret_cast(array) & 0xf) == 0 - && "this assertion is explained here: http://eigen.tuxfamily.org/api/UnalignedArrayAssert.html **** READ THIS WEB PAGE !!! ****"); - } -}; - -template struct ei_aligned_array -{ - T array[Size]; -}; - struct ei_byte_forcing_aligned_malloc { unsigned char c; // sizeof must be 1. -- cgit v1.2.3