From 4aba24a1b25d8d022b1e807cb40bd1d2acec2e44 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 9 Jun 2015 13:32:12 +0200 Subject: Clean argument names of some functions --- Eigen/src/Core/DenseStorage.h | 72 +++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'Eigen/src/Core/DenseStorage.h') diff --git a/Eigen/src/Core/DenseStorage.h b/Eigen/src/Core/DenseStorage.h index f72ba2c66..80c4c6e8e 100644 --- a/Eigen/src/Core/DenseStorage.h +++ b/Eigen/src/Core/DenseStorage.h @@ -218,12 +218,12 @@ template class DenseSt if (this != &other) m_data = other.m_data; return *this; } - EIGEN_DEVICE_FUNC DenseStorage(Index size, Index nbRows, Index nbCols) { + EIGEN_DEVICE_FUNC DenseStorage(Index size, Index rows, Index cols) { EIGEN_INTERNAL_DENSE_STORAGE_CTOR_PLUGIN - eigen_internal_assert(size==nbRows*nbCols && nbRows==_Rows && nbCols==_Cols); + eigen_internal_assert(size==rows*cols && rows==_Rows && cols==_Cols); EIGEN_UNUSED_VARIABLE(size); - EIGEN_UNUSED_VARIABLE(nbRows); - EIGEN_UNUSED_VARIABLE(nbCols); + EIGEN_UNUSED_VARIABLE(rows); + EIGEN_UNUSED_VARIABLE(cols); } EIGEN_DEVICE_FUNC void swap(DenseStorage& other) { std::swap(m_data,other.m_data); } EIGEN_DEVICE_FUNC static Index rows(void) {return _Rows;} @@ -283,13 +283,13 @@ template class DenseStorage class DenseStorage class DenseStorage class DenseStorage(size)), m_rows(nbRows), m_cols(nbCols) + DenseStorage(Index size, Index rows, Index cols) + : m_data(internal::conditional_aligned_new_auto(size)), m_rows(rows), m_cols(cols) { EIGEN_INTERNAL_DENSE_STORAGE_CTOR_PLUGIN - eigen_internal_assert(size==nbRows*nbCols && nbRows>=0 && nbCols >=0); + eigen_internal_assert(size==rows*cols && rows>=0 && cols >=0); } DenseStorage(const DenseStorage& other) : m_data(internal::conditional_aligned_new_auto(other.m_rows*other.m_cols)) @@ -410,13 +410,13 @@ template class DenseStorage(m_data, size, m_rows*m_cols); - m_rows = nbRows; - m_cols = nbCols; + m_rows = rows; + m_cols = cols; } - void resize(Index size, Index nbRows, Index nbCols) + void resize(Index size, Index rows, Index cols) { if(size != m_rows*m_cols) { @@ -427,8 +427,8 @@ template class DenseStorage class DenseStorage(size)), m_cols(nbCols) + DenseStorage(Index size, Index rows, Index cols) : m_data(internal::conditional_aligned_new_auto(size)), m_cols(cols) { EIGEN_INTERNAL_DENSE_STORAGE_CTOR_PLUGIN - eigen_internal_assert(size==nbRows*nbCols && nbRows==_Rows && nbCols >=0); - EIGEN_UNUSED_VARIABLE(nbRows); + eigen_internal_assert(size==rows*cols && rows==_Rows && cols >=0); + EIGEN_UNUSED_VARIABLE(rows); } DenseStorage(const DenseStorage& other) : m_data(internal::conditional_aligned_new_auto(_Rows*other.m_cols)) @@ -485,12 +485,12 @@ template class DenseStorage(m_data, size, _Rows*m_cols); - m_cols = nbCols; + m_cols = cols; } - EIGEN_STRONG_INLINE void resize(Index size, Index, Index nbCols) + EIGEN_STRONG_INLINE void resize(Index size, Index, Index cols) { if(size != _Rows*m_cols) { @@ -501,7 +501,7 @@ template class DenseStorage class DenseStorage(size)), m_rows(nbRows) + DenseStorage(Index size, Index rows, Index cols) : m_data(internal::conditional_aligned_new_auto(size)), m_rows(rows) { EIGEN_INTERNAL_DENSE_STORAGE_CTOR_PLUGIN - eigen_internal_assert(size==nbRows*nbCols && nbRows>=0 && nbCols == _Cols); - EIGEN_UNUSED_VARIABLE(nbCols); + eigen_internal_assert(size==rows*cols && rows>=0 && cols == _Cols); + EIGEN_UNUSED_VARIABLE(cols); } DenseStorage(const DenseStorage& other) : m_data(internal::conditional_aligned_new_auto(other.m_rows*_Cols)) @@ -558,12 +558,12 @@ template class DenseStorage(m_data, size, m_rows*_Cols); - m_rows = nbRows; + m_rows = rows; } - EIGEN_STRONG_INLINE void resize(Index size, Index nbRows, Index) + EIGEN_STRONG_INLINE void resize(Index size, Index rows, Index) { if(size != m_rows*_Cols) { @@ -574,7 +574,7 @@ template class DenseStorage