From a55c27a15f8a34a6479f0032ae1fa72b1207a065 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sat, 18 Jun 2011 08:30:34 +0200 Subject: fix documentation of norm --- Eigen/src/Core/Dot.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Eigen/src/Core/Dot.h') diff --git a/Eigen/src/Core/Dot.h b/Eigen/src/Core/Dot.h index 6e83191c5..42da78498 100644 --- a/Eigen/src/Core/Dot.h +++ b/Eigen/src/Core/Dot.h @@ -116,7 +116,9 @@ MatrixBase::eigen2_dot(const MatrixBase& other) const //---------- implementation of L2 norm and related functions ---------- -/** \returns the squared \em l2 norm of *this, i.e., for vectors, the dot product of *this with itself. +/** \returns, for vectors, the squared \em l2 norm of \c *this, and for matrices the Frobenius norm. + * In both cases, it consists in the sum of the square of all the matrix entries. + * For vectors, this is also equals to the dot product of \c *this with itself. * * \sa dot(), norm() */ @@ -126,7 +128,9 @@ EIGEN_STRONG_INLINE typename NumTraits::Scala return internal::real((*this).cwiseAbs2().sum()); } -/** \returns the \em l2 norm of *this, i.e., for vectors, the square root of the dot product of *this with itself. +/** \returns, for vectors, the \em l2 norm of \c *this, and for matrices the Frobenius norm. + * In both cases, it consists in the square root of the sum of the square of all the matrix entries. + * For vectors, this is also equals to the square root of the dot product of \c *this with itself. * * \sa dot(), squaredNorm() */ -- cgit v1.2.3