aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Desire NUENTSA <desire.nuentsa_wakam@inria.fr>2013-01-21 15:37:06 +0100
committerGravatar Desire NUENTSA <desire.nuentsa_wakam@inria.fr>2013-01-21 15:37:06 +0100
commit5b9bb0026512d078ca06ff8029abf499da2e66d9 (patch)
tree55575268740a115414c47a9cc52f38ba90089ad1
parent5dcf6caa36180901d1a62cb3b0183bbcba639fa2 (diff)
Test for the sparse Blue norm
-rw-r--r--test/sparse_vector.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/sparse_vector.cpp b/test/sparse_vector.cpp
index 9d559f5bf..7973a47dc 100644
--- a/test/sparse_vector.cpp
+++ b/test/sparse_vector.cpp
@@ -77,6 +77,8 @@ template<typename Scalar> void sparse_vector(int rows, int cols)
VERIFY_IS_APPROX(v1.squaredNorm(), refV1.squaredNorm());
+
+ VERIFY_IS_APPROX(v1.blueNorm(), refV1.blueNorm());
// test aliasing
VERIFY_IS_APPROX((v1 = -v1), (refV1 = -refV1));