aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Core/MatrixRef.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-12-11 13:14:14 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-12-11 13:14:14 +0000
commit936b0de9cc1164c369d4b601e92d4737d8defabe (patch)
tree0736e3cc0209508d9efa0962b90502d822d618f2 /src/Core/MatrixRef.h
parent8117c9aa83c67c38257a17dd8bcbb59c699bbcdd (diff)
play with inlining to get better performance when the compiler is not asked to optimize
Diffstat (limited to 'src/Core/MatrixRef.h')
-rw-r--r--src/Core/MatrixRef.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Core/MatrixRef.h b/src/Core/MatrixRef.h
index 1298162a7..351a7ad2c 100644
--- a/src/Core/MatrixRef.h
+++ b/src/Core/MatrixRef.h
@@ -40,15 +40,15 @@ template<typename MatrixType> class MatrixRef
EIGEN_INHERIT_ASSIGNMENT_OPERATORS(MatrixRef)
private:
- 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(); }
- const Scalar& _read(int row, int col) const
+ const Scalar& _read(int row, int col) const EIGEN_ALWAYS_INLINE
{
return m_matrix._read(row, col);
}
- Scalar& _write(int row, int col)
+ Scalar& _write(int row, int col) EIGEN_ALWAYS_INLINE
{
return m_matrix.write(row, col);
}