From 10236984f5276a13f5d2b04cf2e9ef53332d2b7b Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@dune-project.org>
Date: Fri, 26 Feb 2010 20:30:51 +0000
Subject: [PATCH] At least call each multiplication method and each norm once. 
 The least one can do.  Please merge to release branch

[[Imported from SVN: r5911]]
---
 dune/common/test/fmatrixtest.cc | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/dune/common/test/fmatrixtest.cc b/dune/common/test/fmatrixtest.cc
index be00823f9..7c52ad82a 100644
--- a/dune/common/test/fmatrixtest.cc
+++ b/dune/common/test/fmatrixtest.cc
@@ -211,7 +211,25 @@ void test_matrix()
     }
   }
 
-  A.infinity_norm();
+  // test the various matrix-vector products
+  A.mv(v,f);
+  A.mtv(v,f);
+  A.umv(v,f);
+  A.umtv(v,f);
+  A.umhv(v,f);
+  A.mmv(v,f);
+  A.mmtv(v,f);
+  A.mmhv(v,f);
+  A.usmv(0.5,v,f);
+  A.usmtv(0.5,v,f);
+  A.usmhv(0.5,v,f);
+
+
+  // Test the different matrix norms
+  assert( A.frobenius_norm() >= 0 );
+  assert( A.frobenius_norm2() >= 0 );
+  assert( A.infinity_norm() >= 0 );
+  assert( A.infinity_norm_real() >= 0);
 
   std::sort(v.begin(), v.end());
 
-- 
GitLab