Add missing using std::pow in lpNorm.

This commit is contained in:
Gael Guennebaud 2013-06-21 11:37:33 +02:00
parent cf5c5ed725
commit 8cc9b12589

View File

@ -166,6 +166,7 @@ struct lpNorm_selector
typedef typename NumTraits<typename traits<Derived>::Scalar>::Real RealScalar;
static inline RealScalar run(const MatrixBase<Derived>& m)
{
using std::pow;
return pow(m.cwiseAbs().array().pow(p).sum(), RealScalar(1)/p);
}
};