aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/CommaInitializer.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-05-12 17:34:46 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-05-12 17:34:46 +0000
commit678f18fce4dec90ffa97b2fb3a92d572fb64c059 (patch)
tree4f97c884205357bf63dd4692ca0060046a9385f7 /Eigen/src/Core/CommaInitializer.h
parentf0eb3d2d3b671c46d2c3b8c48037f6f8cd0100d3 (diff)
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.
Diffstat (limited to 'Eigen/src/Core/CommaInitializer.h')
-rw-r--r--Eigen/src/Core/CommaInitializer.h10
1 files changed, 5 insertions, 5 deletions
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<typename Derived>
struct MatrixBase<Derived>::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<typename OtherDerived>
- CommaInitializer(Derived& mat, const MatrixBase<OtherDerived>& other)
+ inline CommaInitializer(Derived& mat, const MatrixBase<OtherDerived>& 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<Derived>::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<Derived>::CommaInitializer
* Output: \verbinclude MatrixBase_set.out
*/
template<typename Derived>
-typename MatrixBase<Derived>::CommaInitializer MatrixBase<Derived>::operator<< (const Scalar& s)
+inline typename MatrixBase<Derived>::CommaInitializer MatrixBase<Derived>::operator<< (const Scalar& s)
{
return CommaInitializer(*static_cast<Derived*>(this), s);
}
template<typename Derived>
template<typename OtherDerived>
-typename MatrixBase<Derived>::CommaInitializer
+inline typename MatrixBase<Derived>::CommaInitializer
MatrixBase<Derived>::operator<<(const MatrixBase<OtherDerived>& other)
{
return CommaInitializer(*static_cast<Derived *>(this), other);