diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-11-24 09:16:30 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-11-24 09:16:30 -0500 |
commit | f84cbba52a8e5b7dcf040d9c23b41a76bd9d9ea2 (patch) | |
tree | 34eeb6d67ca0a470ea5e23bfd2ad3c01a6ef609e | |
parent | 07f2406dc196ce6b863aebad59018edd3bbae552 (diff) |
minor fixes
-rw-r--r-- | doc/I13_FunctionsTakingEigenTypes.dox | 6 |
1 files 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 <typename Derived> void print_inv_cond(const MatrixBase<Derived>& a) { - const typename SVD<typename Derived::PlainObject>::SingularValuesType& sing_vals = a.svd().singularValues(); + const typename JacobiSVD<typename Derived::PlainObject>::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 <typename Derived, typename OtherDerived> void cov(const MatrixBase<Derived>& x, const MatrixBase<Derived>& y, MatrixBase<OtherDerived> EIGEN_REF_TO_TEMPORARY C) { - typedef typename internal::traits<Derived>::Scalar Scalar; + typedef typename Derived::Scalar Scalar; typedef typename internal::plain_row_type<Derived>::type RowVectorType; const Scalar num_observations = static_cast<Scalar>(x.rows()); @@ -141,7 +141,7 @@ This is not the case anymore, when we are using an implementation taking MatrixB template <typename Derived, typename OtherDerived> void cov(const MatrixBase<Derived>& x, const MatrixBase<Derived>& y, MatrixBase<OtherDerived> EIGEN_REF_TO_TEMPORARY C_) { - typedef typename internal::traits<Derived>::Scalar Scalar; + typedef typename Derived::Scalar Scalar; typedef typename internal::plain_row_type<Derived>::type RowVectorType; const Scalar num_observations = static_cast<Scalar>(x.rows()); |