make example compile

This commit is contained in:
Benoit Jacob 2010-11-24 09:18:49 -05:00
parent f84cbba52a
commit cd1225ef14

View File

@ -58,7 +58,8 @@ Prints the inverse condition number of the given matrix or matrix-expression.
template <typename Derived>
void print_inv_cond(const MatrixBase<Derived>& a)
{
const typename JacobiSVD<typename Derived::PlainObject>::SingularValuesType& sing_vals = a.svd().singularValues();
const typename JacobiSVD<typename Derived::PlainObject>::SingularValuesType&
sing_vals = a.jacobiSvd().singularValues();
std::cout << "inv cond: " << sing_vals(sing_vals.size()-1) / sing_vals(0) << std::endl;
}
\endcode