From afc64f3332941653a52faa7d441c6af1adbaccc7 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Thu, 13 Mar 2008 09:33:26 +0000 Subject: a lot of renaming internal classes: AaBb -> ei_aa_bb IntAtRunTimeIfDynamic -> ei_int_if_dynamic unify UNROLLING_LIMIT (there was no reason to have operator= use a higher limit) etc... --- Eigen/src/Core/MatrixStorage.h | 47 +++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 24 deletions(-) (limited to 'Eigen/src/Core/MatrixStorage.h') diff --git a/Eigen/src/Core/MatrixStorage.h b/Eigen/src/Core/MatrixStorage.h index c8cb8b4eb..4bc0423f2 100644 --- a/Eigen/src/Core/MatrixStorage.h +++ b/Eigen/src/Core/MatrixStorage.h @@ -26,8 +26,7 @@ #ifndef EIGEN_MATRIXSTORAGE_H #define EIGEN_MATRIXSTORAGE_H - -/** \class MatrixStorage +/** \class ei_matrix_storage * * \brief Stores the data of a matrix * @@ -38,15 +37,15 @@ * * \sa Matrix */ -template class MatrixStorage; +template class ei_matrix_storage; // purely fixed-size matrix. -template class MatrixStorage +template class ei_matrix_storage { T m_data[Size]; public: - MatrixStorage() {} - MatrixStorage(int,int,int) {} + ei_matrix_storage() {} + ei_matrix_storage(int,int,int) {} static int rows(void) {return _Rows;} static int cols(void) {return _Cols;} void resize(int,int,int) {} @@ -55,14 +54,14 @@ template class MatrixStorage }; // dynamic-size matrix with fixed-size storage -template class MatrixStorage +template class ei_matrix_storage { T m_data[Size]; int m_rows; int m_cols; public: - MatrixStorage(int, int rows, int cols) : m_rows(rows), m_cols(cols) {} - ~MatrixStorage() {} + ei_matrix_storage(int, int rows, int cols) : m_rows(rows), m_cols(cols) {} + ~ei_matrix_storage() {} int rows(void) const {return m_rows;} int cols(void) const {return m_cols;} void resize(int, int rows, int cols) @@ -75,13 +74,13 @@ template class MatrixStorage }; // dynamic-size matrix with fixed-size storage and fixed width -template class MatrixStorage +template class ei_matrix_storage { T m_data[Size]; int m_rows; public: - MatrixStorage(int, int rows, int) : m_rows(rows) {} - ~MatrixStorage() {} + ei_matrix_storage(int, int rows, int) : m_rows(rows) {} + ~ei_matrix_storage() {} int rows(void) const {return m_rows;} int cols(void) const {return _Cols;} void resize(int size, int rows, int) @@ -93,13 +92,13 @@ template class MatrixStorage class MatrixStorage +template class ei_matrix_storage { T m_data[Size]; int m_cols; public: - MatrixStorage(int, int, int cols) : m_cols(cols) {} - ~MatrixStorage() {} + ei_matrix_storage(int, int, int cols) : m_cols(cols) {} + ~ei_matrix_storage() {} int rows(void) const {return _Rows;} int cols(void) const {return m_cols;} void resize(int size, int, int cols) @@ -111,15 +110,15 @@ template class MatrixStorage class MatrixStorage +template class ei_matrix_storage { T *m_data; int m_rows; int m_cols; public: - MatrixStorage(int size, int rows, int cols) + ei_matrix_storage(int size, int rows, int cols) : m_data(new T[size]), m_rows(rows), m_cols(cols) {} - ~MatrixStorage() { delete[] m_data; } + ~ei_matrix_storage() { delete[] m_data; } int rows(void) const {return m_rows;} int cols(void) const {return m_cols;} void resize(int size, int rows, int cols) @@ -137,13 +136,13 @@ template class MatrixStorage }; // matrix with dynamic width and fixed height (so that matrix has dynamic size). -template class MatrixStorage +template class ei_matrix_storage { T *m_data; int m_cols; public: - MatrixStorage(int size, int, int cols) : m_data(new T[size]), m_cols(cols) {} - ~MatrixStorage() { delete[] m_data; } + ei_matrix_storage(int size, int, int cols) : m_data(new T[size]), m_cols(cols) {} + ~ei_matrix_storage() { delete[] m_data; } static int rows(void) {return _Rows;} int cols(void) const {return m_cols;} void resize(int size, int, int cols) @@ -160,13 +159,13 @@ template class MatrixStorage }; // matrix with dynamic height and fixed width (so that matrix has dynamic size). -template class MatrixStorage +template class ei_matrix_storage { T *m_data; int m_rows; public: - MatrixStorage(int size, int rows, int) : m_data(new T[size]), m_rows(rows) {} - ~MatrixStorage() { delete[] m_data; } + ei_matrix_storage(int size, int rows, int) : m_data(new T[size]), m_rows(rows) {} + ~ei_matrix_storage() { delete[] m_data; } int rows(void) const {return m_rows;} static int cols(void) {return _Cols;} void resize(int size, int rows, int) -- cgit v1.2.3