play with inlining to get better performance when the compiler is not asked to optimize

This commit is contained in:
Benoit Jacob
2007-12-11 13:14:14 +00:00
parent 8117c9aa83
commit 936b0de9cc
16 changed files with 71 additions and 63 deletions

View File

@@ -47,10 +47,10 @@ template<typename MatrixType> class Conjugate
private:
const Conjugate& _ref() const { return *this; }
int _rows() const { return m_matrix.rows(); }
int _cols() const { return m_matrix.cols(); }
int _rows() const EIGEN_ALWAYS_INLINE { return m_matrix.rows(); }
int _cols() const EIGEN_ALWAYS_INLINE { return m_matrix.cols(); }
Scalar _read(int row, int col) const
Scalar _read(int row, int col) const EIGEN_ALWAYS_INLINE
{
return conj(m_matrix.read(row, col));
}