commit | 2d53466fa936552f95b1c3609faa252caa464260 | [log] [tgz] |
---|---|---|
author | Gael Guennebaud <g.gael@free.fr> | Wed Jan 14 21:27:54 2009 +0000 |
committer | Gael Guennebaud <g.gael@free.fr> | Wed Jan 14 21:27:54 2009 +0000 |
tree | 65ea0c5e21386500d1673f3daa9795eb30633140 | |
parent | f5741d4277e6921bfc0b3a820d340eb15b6c66e7 [diff] [blame] |
Sparse module: * improved performance of mat*=scalar * bug fix in cwise*
diff --git a/test/sparse_vector.cpp b/test/sparse_vector.cpp index 18ef748..0a66af6 100644 --- a/test/sparse_vector.cpp +++ b/test/sparse_vector.cpp
@@ -77,7 +77,9 @@ VERIFY_IS_APPROX(v1*s1-v2, refV1*s1-refV2); -// std::cerr << v1.dot(v2) << " == " << refV1.dot(refV2) << "\n"; + VERIFY_IS_APPROX(v1*=s1, refV1*=s1); + VERIFY_IS_APPROX(v1/=s1, refV1/=s1); + VERIFY_IS_APPROX(v1.dot(v2), refV1.dot(refV2)); }