]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add some std:: where necessary.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 30 Apr 2002 16:15:59 +0000 (16:15 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 30 Apr 2002 16:15:59 +0000 (16:15 +0000)
git-svn-id: https://svn.dealii.org/trunk@5781 0785d39b-7218-0410-832d-ea1e28bc413d

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

index ccf128d2959c4063124b71778c61cc4f2a9ee383..3ead4bbe901e767b1e5cb4f03563d45511a6c622 100644 (file)
@@ -458,9 +458,9 @@ SparseMatrix<number>::matrix_norm_square (const Vector<somenumber>& v) const
                                       // ... and wait until they're finished
       thread_manager.wait ();
                                       // accumulate the partial results
-      return accumulate (partial_sums.begin(),
-                        partial_sums.end(),
-                        0.);
+      return std::accumulate (partial_sums.begin(),
+                             partial_sums.end(),
+                             0.);
     };
 #endif
                                   // if not in MT mode or the matrix is
@@ -551,9 +551,9 @@ SparseMatrix<number>::matrix_scalar_product (const Vector<somenumber>& u,
                                       // ... and wait until they're finished
       thread_manager.wait ();
                                       // accumulate the partial results
-      return accumulate (partial_sums.begin(),
-                        partial_sums.end(),
-                        0.);
+      return std::accumulate (partial_sums.begin(),
+                             partial_sums.end(),
+                             0.);
     };
 #endif
                                   // if not in MT mode or the matrix is
@@ -688,9 +688,9 @@ SparseMatrix<number>::residual (Vector<somenumber>       &dst,
                                       // ... and wait until they're finished
       thread_manager.wait ();
                                       // accumulate the partial results
-      return sqrt(accumulate (partial_norms.begin(),
-                             partial_norms.end(),
-                             0.));
+      return std::sqrt(std::accumulate (partial_norms.begin(),
+                                       partial_norms.end(),
+                                       0.));
     };
 #endif
   

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.