aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/ref.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-02-27 08:07:18 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-02-27 08:07:18 +0100
commit455e6e38b6986f9081b07c79e53aa9fa50ce4edd (patch)
treeacaa31c05088d8d8941ad48f72a564497bcd2a8f /test/ref.cpp
parent61a2995d03e8950d706a45589a3aface84bbdba3 (diff)
Fix two numerical issues in unit tests.
Diffstat (limited to 'test/ref.cpp')
-rw-r--r--test/ref.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ref.cpp b/test/ref.cpp
index 2ca572813..bdc948433 100644
--- a/test/ref.cpp
+++ b/test/ref.cpp
@@ -42,7 +42,7 @@ template<typename MatrixType> void ref_matrix(const MatrixType& m)
typedef Ref<const DynMatrixType> ConstRefDynMat;
typedef Ref<RealDynMatrixType , 0, Stride<Dynamic,Dynamic> > RefRealMatWithStride;
- Index rows = m.rows(), cols = m.cols(), size = rows*cols;
+ Index rows = m.rows(), cols = m.cols();
MatrixType m1 = MatrixType::Random(rows, cols),
m2 = m1;
@@ -136,7 +136,7 @@ template<typename VectorType> void ref_vector(const VectorType& m)
VERIFY_IS_EQUAL(mat1, mat2);
rm5.noalias() = rm4.transpose() * mat3;
mat2.row(i) = v2.real().transpose() * mat3;
- VERIFY_IS_EQUAL(mat1, mat2);
+ VERIFY_IS_APPROX(mat1, mat2);
}
template<typename PlainObjectType> void check_const_correctness(const PlainObjectType&)