From 5526877f31adcefa4c857fcd6bf3a3f88b912f51 Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Wed, 30 Oct 2013 11:46:00 +0000 Subject: [PATCH] "Precision.compareTo" returns an "int". git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1537053 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/math3/linear/EigenDecomposition.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/math3/linear/EigenDecomposition.java b/src/main/java/org/apache/commons/math3/linear/EigenDecomposition.java index b5e93ce2b..4d4d794a2 100644 --- a/src/main/java/org/apache/commons/math3/linear/EigenDecomposition.java +++ b/src/main/java/org/apache/commons/math3/linear/EigenDecomposition.java @@ -828,7 +828,7 @@ public class EigenDecomposition { for (int j = l; j <= idx; j++) { r = r + matrixT[i][j] * matrixT[j][idx]; } - if (Precision.compareTo(imagEigenvalues[i], 0.0, EPSILON) < 0.0) { + if (Precision.compareTo(imagEigenvalues[i], 0.0, EPSILON) < 0) { z = w; s = r; } else { @@ -890,7 +890,7 @@ public class EigenDecomposition { } double w = matrixT[i][i] - p; - if (Precision.compareTo(imagEigenvalues[i], 0.0, EPSILON) < 0.0) { + if (Precision.compareTo(imagEigenvalues[i], 0.0, EPSILON) < 0) { z = w; r = ra; s = sa;