Skip to content
Snippets Groups Projects
Commit 10236984 authored by Oliver Sander's avatar Oliver Sander
Browse files

At least call each multiplication method and each norm once. The least one...

At least call each multiplication method and each norm once.  The least one can do.  Please merge to release branch

[[Imported from SVN: r5911]]
parent 6c5f00a2
No related branches found
No related tags found
No related merge requests found
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment