]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
test adding multiplication
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 12 Mar 2005 03:03:15 +0000 (03:03 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 12 Mar 2005 03:03:15 +0000 (03:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@10107 0785d39b-7218-0410-832d-ea1e28bc413d

tests/lac/matrix_lib.cc
tests/results/i686-pc-linux-gnu+gcc3.2/lac/matrix_lib.output

index 5f9e58476d2a71ac79c60af0e4d6a2b2a149e9a2..b09fa3f0ae90e9c30770dee31d29e8be469d42b4 100644 (file)
@@ -40,14 +40,23 @@ void check_sparse_product(const SparseMatrix<number>& m1, SparseMatrix<number>&
   GrowingVectorMemory<Vector<double> > mem;
   
   ProductSparseMatrix<number, number> product(m1, m2, mem);
+  
   product.vmult(w,v);
-
   for (unsigned int i=0;i<w.size();++i)
     deallog << ' ' << w(i);
   deallog << std::endl;
-
+  
+  product.vmult_add(w,v);
+  for (unsigned int i=0;i<w.size();++i)
+    deallog << ' ' << w(i);
+  deallog << std::endl;
+  
   product.Tvmult(v,w);
+  for (unsigned int i=0;i<v.size();++i)
+    deallog << ' ' << v(i);
+  deallog << std::endl;
   
+  product.Tvmult_add(v,w);
   for (unsigned int i=0;i<v.size();++i)
     deallog << ' ' << v(i);
   deallog << std::endl;
index b44294db163ed1bbbb1415810a81c58c7b28b421..971646a9dce2d30c5fec87ed036e05d775da8258 100644 (file)
@@ -2,6 +2,8 @@
 DEAL::Sizes    4       2
 DEAL:: 1. 2. 3. 4.
 DEAL:: -14. -8.
-DEAL:: -86. -44. 86. 44.
-DEAL::GrowingVectorMemory:Overall allocated vectors: 2
+DEAL:: -28. -16.
+DEAL:: -172. -88. 172. 88.
+DEAL:: -344. -176. 344. 176.
+DEAL::GrowingVectorMemory:Overall allocated vectors: 4
 DEAL::GrowingVectorMemory:Maximum allocated vectors: 1

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.