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:
@@ -76,18 +76,16 @@ template<typename MatrixType, bool CheckExistence> class Inverse : ei_no_assignm
|
||||
*/
|
||||
bool exists() const { assert(CheckExistence); return m_exists; }
|
||||
|
||||
private:
|
||||
int rows() const { return m_inverse.rows(); }
|
||||
int cols() const { return m_inverse.cols(); }
|
||||
|
||||
int _rows() const { return m_inverse.rows(); }
|
||||
int _cols() const { return m_inverse.cols(); }
|
||||
|
||||
const Scalar _coeff(int row, int col) const
|
||||
const Scalar coeff(int row, int col) const
|
||||
{
|
||||
return m_inverse.coeff(row, col);
|
||||
}
|
||||
|
||||
template<int LoadMode>
|
||||
PacketScalar _packet(int row, int col) const
|
||||
PacketScalar packet(int row, int col) const
|
||||
{
|
||||
return m_inverse.template packet<LoadMode>(row, col);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user