add lpNorm<p>() method to MatrixBase, implemented in Array module, with

specializations for cases p=1,2,Eigen::Infinity.
This commit is contained in:
Benoit Jacob
2008-11-03 22:47:00 +00:00
parent a0ec0fca5a
commit e80099932a
5 changed files with 102 additions and 0 deletions

View File

@@ -557,6 +557,8 @@ template<typename Derived> class MatrixBase
inline const Select<Derived, NestByValue<typename ElseDerived::ConstantReturnType>, ElseDerived >
select(typename ElseDerived::Scalar thenScalar, const MatrixBase<ElseDerived>& elseMatrix) const;
template<int p> RealScalar lpNorm() const;
/////////// LU module ///////////
const LU<EvalType> lu() const;

View File

@@ -27,6 +27,7 @@
#define EIGEN_CONSTANTS_H
const int Dynamic = 10000;
const int Infinity = -1;
/** \defgroup flags flags
* \ingroup Core_Module