]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Change the argument type for the exponent of the Lp norm to the same type as the...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 Aug 2002 09:54:28 +0000 (09:54 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 Aug 2002 09:54:28 +0000 (09:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@6317 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/vector.h
deal.II/lac/include/lac/vector.templates.h

index 54a50402b5eefae118ffaa58bc1876628ab44d08..956c3c2f2b5162ea8756a2ff97d31dfb0252e7e6 100644 (file)
@@ -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
index 793ee1690a7f7428d111b41ba5fbe64d98ad269d..b29934c443c6eff26ec3bdf1a3824028eb9fcdb4 100644 (file)
@@ -240,7 +240,7 @@ Number Vector<Number>::l2_norm () const
 
 
 template <typename Number>
-Number Vector<Number>::lp_norm (double p) const
+Number Vector<Number>::lp_norm (const Number p) const
 {
   Assert (dim!=0, ExcEmptyVector());
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.