mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-25 15:53:19 +08:00
fix doc for norm() and squaredNorm(): these are not only for vectors
This commit is contained in:
parent
d7f60257dd
commit
046a84c0ef
@ -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()
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user