- add MatrixBase::eigenvalues() convenience method

- add MatrixBase::matrixNorm(); in the non-selfadjoint case, we reduce to the
  selfadjoint case by using the "C*-identity" a.k.a.
	norm of x = sqrt(norm of x * x.adjoint())
This commit is contained in:
Benoit Jacob
2008-06-02 04:42:45 +00:00
parent 92b7e2d6a1
commit 0444e3601a
3 changed files with 53 additions and 3 deletions

View File

@@ -269,7 +269,7 @@ template<typename Derived>
const Inverse<typename ei_eval<Derived>::type, true>
MatrixBase<Derived>::inverse() const
{
return Inverse<typename ei_eval<Derived>::type, true>(eval());
return Inverse<typename Derived::Eval, true>(eval());
}
/** \return the matrix inverse of \c *this, which is assumed to exist.
@@ -283,7 +283,7 @@ template<typename Derived>
const Inverse<typename ei_eval<Derived>::type, false>
MatrixBase<Derived>::quickInverse() const
{
return Inverse<typename ei_eval<Derived>::type, false>(eval());
return Inverse<typename Derived::Eval, false>(eval());
}
#endif // EIGEN_INVERSE_H