From f84cbba52a8e5b7dcf040d9c23b41a76bd9d9ea2 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 24 Nov 2010 09:16:30 -0500 Subject: [PATCH] minor fixes --- doc/I13_FunctionsTakingEigenTypes.dox | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/I13_FunctionsTakingEigenTypes.dox b/doc/I13_FunctionsTakingEigenTypes.dox index 8f2542632..0fffd548d 100644 --- a/doc/I13_FunctionsTakingEigenTypes.dox +++ b/doc/I13_FunctionsTakingEigenTypes.dox @@ -58,7 +58,7 @@ Prints the inverse condition number of the given matrix or matrix-expression. template void print_inv_cond(const MatrixBase& a) { - const typename SVD::SingularValuesType& sing_vals = a.svd().singularValues(); + const typename JacobiSVD::SingularValuesType& sing_vals = a.svd().singularValues(); std::cout << "inv cond: " << sing_vals(sing_vals.size()-1) / sing_vals(0) << std::endl; } \endcode @@ -111,7 +111,7 @@ The solution which is preferred at the moment is based on a little \em hack. One template void cov(const MatrixBase& x, const MatrixBase& y, MatrixBase EIGEN_REF_TO_TEMPORARY C) { - typedef typename internal::traits::Scalar Scalar; + typedef typename Derived::Scalar Scalar; typedef typename internal::plain_row_type::type RowVectorType; const Scalar num_observations = static_cast(x.rows()); @@ -141,7 +141,7 @@ This is not the case anymore, when we are using an implementation taking MatrixB template void cov(const MatrixBase& x, const MatrixBase& y, MatrixBase EIGEN_REF_TO_TEMPORARY C_) { - typedef typename internal::traits::Scalar Scalar; + typedef typename Derived::Scalar Scalar; typedef typename internal::plain_row_type::type RowVectorType; const Scalar num_observations = static_cast(x.rows());