Test for the sparse Blue norm

This commit is contained in:
Desire NUENTSA 2013-01-21 15:37:06 +01:00
parent 5dcf6caa36
commit 5b9bb00265

View File

@ -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));