From 678f18fce4dec90ffa97b2fb3a92d572fb64c059 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 12 May 2008 17:34:46 +0000 Subject: put inline keywords everywhere appropriate. So we don't need anymore to pass -finline-limit=1000 to gcc to get good performance. By the way some cleanup. --- Eigen/src/Core/CommaInitializer.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Eigen/src/Core/CommaInitializer.h') diff --git a/Eigen/src/Core/CommaInitializer.h b/Eigen/src/Core/CommaInitializer.h index 21551ccf2..d5e25b6e4 100644 --- a/Eigen/src/Core/CommaInitializer.h +++ b/Eigen/src/Core/CommaInitializer.h @@ -32,14 +32,14 @@ template struct MatrixBase::CommaInitializer { - CommaInitializer(Derived& mat, const Scalar& s) + inline CommaInitializer(Derived& mat, const Scalar& s) : m_matrix(mat), m_row(0), m_col(1), m_currentBlockRows(1) { m_matrix.coeffRef(0,0) = s; } template - CommaInitializer(Derived& mat, const MatrixBase& other) + inline CommaInitializer(Derived& mat, const MatrixBase& other) : m_matrix(mat), m_row(0), m_col(other.cols()), m_currentBlockRows(other.rows()) { m_matrix.block(0, 0, other.rows(), other.cols()) = other; @@ -86,7 +86,7 @@ struct MatrixBase::CommaInitializer return *this; } - ~CommaInitializer(void) + inline ~CommaInitializer() { ei_assert((m_row+m_currentBlockRows) == m_matrix.rows() && m_col == m_matrix.cols() @@ -108,14 +108,14 @@ struct MatrixBase::CommaInitializer * Output: \verbinclude MatrixBase_set.out */ template -typename MatrixBase::CommaInitializer MatrixBase::operator<< (const Scalar& s) +inline typename MatrixBase::CommaInitializer MatrixBase::operator<< (const Scalar& s) { return CommaInitializer(*static_cast(this), s); } template template -typename MatrixBase::CommaInitializer +inline typename MatrixBase::CommaInitializer MatrixBase::operator<<(const MatrixBase& other) { return CommaInitializer(*static_cast(this), other); -- cgit v1.2.3