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:
Benoit Jacob
2008-06-26 20:08:16 +00:00
parent 25ba9f377c
commit c5bd1703cb
20 changed files with 137 additions and 168 deletions

View File

@@ -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);
}