mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
revert most of my previous commit. forcing the compiler to inline only increased
its memory usage.
This commit is contained in:
@@ -52,10 +52,10 @@ template<typename Lhs, typename Rhs> class Difference
|
||||
|
||||
private:
|
||||
const Difference& _ref() const { return *this; }
|
||||
int _rows() const EIGEN_ALWAYS_INLINE { return m_lhs.rows(); }
|
||||
int _cols() const EIGEN_ALWAYS_INLINE { return m_lhs.cols(); }
|
||||
int _rows() const { return m_lhs.rows(); }
|
||||
int _cols() const { return m_lhs.cols(); }
|
||||
|
||||
Scalar _read(int row, int col) const EIGEN_ALWAYS_INLINE
|
||||
Scalar _read(int row, int col) const
|
||||
{
|
||||
return m_lhs.read(row, col) - m_rhs.read(row, col);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user