From 2166fdac3d13cb044b5e6d8e5f6093aeaa17d6b1 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Mon, 23 Jul 2012 20:20:07 +0000 Subject: [PATCH] Use non-deprecated ctor. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364784 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/math3/linear/EigenSolverTest.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/test/java/org/apache/commons/math3/linear/EigenSolverTest.java b/src/test/java/org/apache/commons/math3/linear/EigenSolverTest.java index f438af49d..054137dcc 100644 --- a/src/test/java/org/apache/commons/math3/linear/EigenSolverTest.java +++ b/src/test/java/org/apache/commons/math3/linear/EigenSolverTest.java @@ -19,7 +19,6 @@ package org.apache.commons.math3.linear; import java.util.Random; -import org.apache.commons.math3.util.Precision; import org.apache.commons.math3.exception.MathIllegalArgumentException; import org.junit.Test; @@ -33,7 +32,7 @@ public class EigenSolverTest { Random r = new Random(9994100315209l); RealMatrix m = EigenDecompositionTest.createTestMatrix(r, new double[] { 1.0, 0.0, -1.0, -2.0, -3.0 }); - DecompositionSolver es = new EigenDecomposition(m, Precision.SAFE_MIN).getSolver(); + DecompositionSolver es = new EigenDecomposition(m).getSolver(); Assert.assertFalse(es.isNonSingular()); try { es.getInverse(); @@ -49,7 +48,7 @@ public class EigenSolverTest { Random r = new Random(9994100315209l); RealMatrix m = EigenDecompositionTest.createTestMatrix(r, new double[] { 1.0, 0.5, -1.0, -2.0, -3.0 }); - DecompositionSolver es = new EigenDecomposition(m, Precision.SAFE_MIN).getSolver(); + DecompositionSolver es = new EigenDecomposition(m).getSolver(); Assert.assertTrue(es.isNonSingular()); RealMatrix inverse = es.getInverse(); RealMatrix error = @@ -65,7 +64,7 @@ public class EigenSolverTest { }; final RealMatrix matrix = EigenDecompositionTest.createTestMatrix(new Random(35992629946426l), refValues); - DecompositionSolver es = new EigenDecomposition(matrix, Precision.SAFE_MIN).getSolver(); + DecompositionSolver es = new EigenDecomposition(matrix).getSolver(); RealMatrix b = MatrixUtils.createRealMatrix(new double[2][2]); try { es.solve(b); @@ -98,7 +97,7 @@ public class EigenSolverTest { { 40, 2, 21, 9, 51, 19 }, { 14, -1, 8, 0, 19, 14 } }); - DecompositionSolver es = new EigenDecomposition(m, Precision.SAFE_MIN).getSolver(); + DecompositionSolver es = new EigenDecomposition(m).getSolver(); RealMatrix b = MatrixUtils.createRealMatrix(new double[][] { { 1561, 269, 188 }, { 69, -21, 70 },