From: Wolfgang Bangerth Date: Tue, 19 May 1998 19:03:43 +0000 (+0000) Subject: Perform some performance tweaks. X-Git-Tag: v8.0.0~22937 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25489367bfd82028b69ae54d28984880342541f8;p=dealii.git Perform some performance tweaks. git-svn-id: https://svn.dealii.org/trunk@317 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/dvector.cc b/deal.II/lac/source/dvector.cc index 56949a1ed7..e83d8cd10a 100644 --- a/deal.II/lac/source/dvector.cc +++ b/deal.II/lac/source/dvector.cc @@ -5,8 +5,15 @@ // Roland Becker, Guido Kanschat, Franz-Theo Suttmeier #include -#include -#include +#include +#include + + +inline double sqr (const double x) { + return x*x; +}; + + dVector::dVector () : dim(0), @@ -41,8 +48,7 @@ dVector::dVector (const dVector& v) : { val = new double[maxdim]; Assert (val != 0, ExcOutOfMemory()); - for (unsigned int i=0; i