From e9e76131f35c112046b9f184816683beab605e9c Mon Sep 17 00:00:00 2001 From: Gilles Date: Fri, 24 Feb 2017 14:50:55 +0100 Subject: [PATCH] Make tolerance more stringent for trivial case (unit test). --- .../org/apache/commons/math4/linear/RRQRDecompositionTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/math4/linear/RRQRDecompositionTest.java b/src/test/java/org/apache/commons/math4/linear/RRQRDecompositionTest.java index 8623bec6f..b307b80ba 100644 --- a/src/test/java/org/apache/commons/math4/linear/RRQRDecompositionTest.java +++ b/src/test/java/org/apache/commons/math4/linear/RRQRDecompositionTest.java @@ -235,7 +235,6 @@ public class RRQRDecompositionTest { double[][] d = { { 1, 1, 1 }, { 0, 0, 0 }, { 1, 2, 3 } }; RealMatrix m = new Array2DRowRealMatrix(d); RRQRDecomposition qr = new RRQRDecomposition(m); - Assert.assertEquals(2, qr.getRank(1.0e-16)); + Assert.assertEquals(2, qr.getRank(0)); } - }