From 8d2a10c5c15cdc80a7c322f5c51f681ad8c1d491 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sat, 25 Dec 2010 17:04:36 -0500 Subject: [PATCH] more renaming to make this file matrix-or-array-agnostic --- Eigen/src/Core/DenseStorage.h | 36 +++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/Eigen/src/Core/DenseStorage.h b/Eigen/src/Core/DenseStorage.h index 5b63326a6..d27fb7bfb 100644 --- a/Eigen/src/Core/DenseStorage.h +++ b/Eigen/src/Core/DenseStorage.h @@ -38,18 +38,18 @@ namespace internal { struct constructor_without_unaligned_array_assert {}; /** \internal - * Static array. If the MatrixOptions require auto-alignment, the array will be automatically aligned: + * Static array. If the MatrixOrArrayOptions require auto-alignment, the array will be automatically aligned: * to 16 bytes boundary if the total size is a multiple of 16 bytes. */ -template -struct matrix_array +struct plain_array { T array[Size]; - matrix_array() {} - matrix_array(constructor_without_unaligned_array_assert) {} + plain_array() {} + plain_array(constructor_without_unaligned_array_assert) {} }; #ifdef EIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT @@ -62,20 +62,20 @@ struct matrix_array " **** READ THIS WEB PAGE !!! ****"); #endif -template -struct matrix_array +template +struct plain_array { EIGEN_ALIGN16 T array[Size]; - matrix_array() { EIGEN_MAKE_UNALIGNED_ARRAY_ASSERT(0xf) } - matrix_array(constructor_without_unaligned_array_assert) {} + plain_array() { EIGEN_MAKE_UNALIGNED_ARRAY_ASSERT(0xf) } + plain_array(constructor_without_unaligned_array_assert) {} }; -template -struct matrix_array +template +struct plain_array { EIGEN_ALIGN16 T array[1]; - matrix_array() {} - matrix_array(constructor_without_unaligned_array_assert) {} + plain_array() {} + plain_array(constructor_without_unaligned_array_assert) {} }; } // end namespace internal @@ -97,7 +97,7 @@ template class DenseSt // purely fixed-size matrix template class DenseStorage { - internal::matrix_array m_data; + internal::plain_array m_data; public: inline explicit DenseStorage() {} inline DenseStorage(internal::constructor_without_unaligned_array_assert) @@ -131,7 +131,7 @@ template class DenseStorage class DenseStorage { - internal::matrix_array m_data; + internal::plain_array m_data; DenseIndex m_rows; DenseIndex m_cols; public: @@ -152,7 +152,7 @@ template class DenseStorage class DenseStorage { - internal::matrix_array m_data; + internal::plain_array m_data; DenseIndex m_rows; public: inline explicit DenseStorage() : m_rows(0) {} @@ -171,7 +171,7 @@ template class DenseStorage class DenseStorage { - internal::matrix_array m_data; + internal::plain_array m_data; DenseIndex m_cols; public: inline explicit DenseStorage() : m_cols(0) {}