Make tolerance more stringent for trivial case (unit test).

This commit is contained in:
Gilles 2017-02-24 14:50:55 +01:00
parent 6563275706
commit e9e76131f3
1 changed files with 1 additions and 2 deletions

View File

@ -235,7 +235,6 @@ public class RRQRDecompositionTest {
double[][] d = { { 1, 1, 1 }, { 0, 0, 0 }, { 1, 2, 3 } }; double[][] d = { { 1, 1, 1 }, { 0, 0, 0 }, { 1, 2, 3 } };
RealMatrix m = new Array2DRowRealMatrix(d); RealMatrix m = new Array2DRowRealMatrix(d);
RRQRDecomposition qr = new RRQRDecomposition(m); RRQRDecomposition qr = new RRQRDecomposition(m);
Assert.assertEquals(2, qr.getRank(1.0e-16)); Assert.assertEquals(2, qr.getRank(0));
} }
} }