mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
change derived classes methods from "private:_method()"
to "public:method()" i.e. reimplementing the generic method() from MatrixBase. improves compilation speed by 7%, reduces almost by half the call depth of trivial functions, making gcc errors and application backtraces nicer...
This commit is contained in:
@@ -79,10 +79,10 @@ class PartialRedux : ei_no_assignment_operator,
|
||||
|
||||
private:
|
||||
|
||||
int _rows() const { return (Direction==Vertical ? 1 : m_matrix.rows()); }
|
||||
int _cols() const { return (Direction==Horizontal ? 1 : m_matrix.cols()); }
|
||||
int rows() const { return (Direction==Vertical ? 1 : m_matrix.rows()); }
|
||||
int cols() const { return (Direction==Horizontal ? 1 : m_matrix.cols()); }
|
||||
|
||||
const Scalar _coeff(int i, int j) const
|
||||
const Scalar coeff(int i, int j) const
|
||||
{
|
||||
if (Direction==Vertical)
|
||||
return m_matrix.col(j).redux(m_functor);
|
||||
|
||||
Reference in New Issue
Block a user