fix doc for norm() and squaredNorm(): these are not only for vectors

This commit is contained in:
Benoit Jacob 2009-01-27 14:05:20 +00:00
parent d7f60257dd
commit 046a84c0ef

View File

@ -269,9 +269,7 @@ MatrixBase<Derived>::dot(const MatrixBase<OtherDerived>& other) const
return ei_dot_impl<Derived, OtherDerived>::run(derived(), other.derived()); return ei_dot_impl<Derived, OtherDerived>::run(derived(), other.derived());
} }
/** \returns the squared norm of *this, i.e. the dot product of *this with itself. /** \returns the squared \em l2 norm of *this, i.e., for vectors, the dot product of *this with itself.
*
* \only_for_vectors
* *
* \sa dot(), norm() * \sa dot(), norm()
*/ */
@ -281,9 +279,7 @@ inline typename NumTraits<typename ei_traits<Derived>::Scalar>::Real MatrixBase<
return ei_real((*this).cwise().abs2().sum()); return ei_real((*this).cwise().abs2().sum());
} }
/** \returns the \em l2 norm of *this, i.e. the square root of the dot product of *this with itself. /** \returns the \em l2 norm of *this, i.e., for vectors, the square root of the dot product of *this with itself.
*
* \only_for_vectors
* *
* \sa dot(), squaredNorm() * \sa dot(), squaredNorm()
*/ */