mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
* doc improvements in Cwise and PartialRedux:
- 33 new snippets - unfuck doxygen output in Cwise (issues with function macros) - more see-also links from outside, making Cwise more discoverable * rename matrixNorm() to operatorNorm(). There are many matrix norms (the L2 is another one) but only one is called the operator norm. Risk of confusion with keyword operator is not too scary after all.
This commit is contained in:
@@ -259,10 +259,10 @@ MatrixBase<Derived>::eigenvalues() const
|
||||
}
|
||||
|
||||
template<typename Derived, bool IsSelfAdjoint>
|
||||
struct ei_matrixNorm_selector
|
||||
struct ei_operatorNorm_selector
|
||||
{
|
||||
static inline typename NumTraits<typename ei_traits<Derived>::Scalar>::Real
|
||||
matrixNorm(const MatrixBase<Derived>& m)
|
||||
operatorNorm(const MatrixBase<Derived>& m)
|
||||
{
|
||||
// FIXME if it is really guaranteed that the eigenvalues are already sorted,
|
||||
// then we don't need to compute a maxCoeff() here, comparing the 1st and last ones is enough.
|
||||
@@ -270,10 +270,10 @@ struct ei_matrixNorm_selector
|
||||
}
|
||||
};
|
||||
|
||||
template<typename Derived> struct ei_matrixNorm_selector<Derived, false>
|
||||
template<typename Derived> struct ei_operatorNorm_selector<Derived, false>
|
||||
{
|
||||
static inline typename NumTraits<typename ei_traits<Derived>::Scalar>::Real
|
||||
matrixNorm(const MatrixBase<Derived>& m)
|
||||
operatorNorm(const MatrixBase<Derived>& m)
|
||||
{
|
||||
typename Derived::Eval m_eval(m);
|
||||
// FIXME if it is really guaranteed that the eigenvalues are already sorted,
|
||||
@@ -293,10 +293,10 @@ template<typename Derived> struct ei_matrixNorm_selector<Derived, false>
|
||||
*/
|
||||
template<typename Derived>
|
||||
inline typename NumTraits<typename ei_traits<Derived>::Scalar>::Real
|
||||
MatrixBase<Derived>::matrixNorm() const
|
||||
MatrixBase<Derived>::operatorNorm() const
|
||||
{
|
||||
return ei_matrixNorm_selector<Derived, Flags&SelfAdjointBit>
|
||||
::matrixNorm(derived());
|
||||
return ei_operatorNorm_selector<Derived, Flags&SelfAdjointBit>
|
||||
::operatorNorm(derived());
|
||||
}
|
||||
|
||||
#ifndef EIGEN_EXTERN_INSTANTIATIONS
|
||||
|
||||
Reference in New Issue
Block a user