From 5f390a0cd11a8d27a3e1effe28466d41cc8532f3 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Thu, 26 Sep 2013 16:16:32 +0200 Subject: [PATCH] As homogeneous_linear_solver() modifies the matrix which is passed as reference we make sure that rank() is called on the modified matrix. --- Kernel_d/test/Kernel_d/Linear_algebra-test.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Kernel_d/test/Kernel_d/Linear_algebra-test.cpp b/Kernel_d/test/Kernel_d/Linear_algebra-test.cpp index 5e128e4e499..6d66a68381f 100644 --- a/Kernel_d/test/Kernel_d/Linear_algebra-test.cpp +++ b/Kernel_d/test/Kernel_d/Linear_algebra-test.cpp @@ -202,7 +202,8 @@ int main(int argc, char* argv[]) Matrix SV; if (LA::homogeneous_linear_solver(E,x)) { CGAL_TEST(E*x==Vector(mat_dim)); - CGAL_TEST(LA::homogeneous_linear_solver(E,SV)==LA::rank(SV)); + int r = LA::homogeneous_linear_solver(E,SV); + CGAL_TEST(r==LA::rank(SV)); } // inverse @@ -399,7 +400,8 @@ int main(int argc, char* argv[]) Matrix SV; if (LA::homogeneous_linear_solver(E,x)) { CGAL_TEST(E*x==Vector(mat_dim)); - CGAL_TEST(LA::homogeneous_linear_solver(E,SV)==LA::rank(SV)); + int r = LA::homogeneous_linear_solver(E,SV); + CGAL_TEST(r==LA::rank(SV)); } // inverse if (LA::inverse(E,D,denom,c)) {