]> https://gitweb.dealii.org/ - dealii.git/commitdiff
test adding multiplication
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Sat, 12 Mar 2005 03:03:15 +0000 (03:03 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
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

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;

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.