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:
@@ -41,10 +41,10 @@ class MatrixStorage
|
||||
assert(rows == RowsAtCompileTime && cols == ColsAtCompileTime);
|
||||
}
|
||||
|
||||
int _rows() const EIGEN_ALWAYS_INLINE
|
||||
int _rows() const
|
||||
{ return RowsAtCompileTime; }
|
||||
|
||||
int _cols() const EIGEN_ALWAYS_INLINE
|
||||
int _cols() const
|
||||
{ return ColsAtCompileTime; }
|
||||
|
||||
public:
|
||||
@@ -80,10 +80,10 @@ class MatrixStorage<Scalar, Dynamic, ColsAtCompileTime>
|
||||
m_rows = rows;
|
||||
}
|
||||
|
||||
int _rows() const EIGEN_ALWAYS_INLINE
|
||||
int _rows() const
|
||||
{ return m_rows; }
|
||||
|
||||
int _cols() const EIGEN_ALWAYS_INLINE
|
||||
int _cols() const
|
||||
{ return ColsAtCompileTime; }
|
||||
|
||||
public:
|
||||
@@ -124,10 +124,10 @@ class MatrixStorage<Scalar, RowsAtCompileTime, Dynamic>
|
||||
m_cols = cols;
|
||||
}
|
||||
|
||||
int _rows() const EIGEN_ALWAYS_INLINE
|
||||
int _rows() const
|
||||
{ return RowsAtCompileTime; }
|
||||
|
||||
int _cols() const EIGEN_ALWAYS_INLINE
|
||||
int _cols() const
|
||||
{ return m_cols; }
|
||||
|
||||
public:
|
||||
@@ -168,10 +168,10 @@ class MatrixStorage<Scalar, Dynamic, Dynamic>
|
||||
m_cols = cols;
|
||||
}
|
||||
|
||||
int _rows() const EIGEN_ALWAYS_INLINE
|
||||
int _rows() const
|
||||
{ return m_rows; }
|
||||
|
||||
int _cols() const EIGEN_ALWAYS_INLINE
|
||||
int _cols() const
|
||||
{ return m_cols; }
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user