From ee1d0d9f47216cd3334e9a6989213a6dcd60aeda Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 5 Aug 2002 09:54:28 +0000 Subject: [PATCH] Change the argument type for the exponent of the Lp norm to the same type as the number, to avoid ambiguities in selecting the right std::pow function. git-svn-id: https://svn.dealii.org/trunk@6317 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/vector.h | 2 +- deal.II/lac/include/lac/vector.templates.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/lac/include/lac/vector.h b/deal.II/lac/include/lac/vector.h index 54a50402b5..956c3c2f2b 100644 --- a/deal.II/lac/include/lac/vector.h +++ b/deal.II/lac/include/lac/vector.h @@ -253,7 +253,7 @@ class Vector * powers of the absolute values * of the elements. */ - Number lp_norm (double p) const; + Number lp_norm (const Number p) const; /** * Maximum absolute value of the diff --git a/deal.II/lac/include/lac/vector.templates.h b/deal.II/lac/include/lac/vector.templates.h index 793ee1690a..b29934c443 100644 --- a/deal.II/lac/include/lac/vector.templates.h +++ b/deal.II/lac/include/lac/vector.templates.h @@ -240,7 +240,7 @@ Number Vector::l2_norm () const template -Number Vector::lp_norm (double p) const +Number Vector::lp_norm (const Number p) const { Assert (dim!=0, ExcEmptyVector()); -- 2.39.5