summaryrefslogtreecommitdiff
path: root/src/de/lmu/ifi/dbs/elki/math/linearalgebra/EigenvalueDecomposition.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/lmu/ifi/dbs/elki/math/linearalgebra/EigenvalueDecomposition.java')
-rw-r--r--src/de/lmu/ifi/dbs/elki/math/linearalgebra/EigenvalueDecomposition.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/de/lmu/ifi/dbs/elki/math/linearalgebra/EigenvalueDecomposition.java b/src/de/lmu/ifi/dbs/elki/math/linearalgebra/EigenvalueDecomposition.java
index 67d77089..48ce9c7b 100644
--- a/src/de/lmu/ifi/dbs/elki/math/linearalgebra/EigenvalueDecomposition.java
+++ b/src/de/lmu/ifi/dbs/elki/math/linearalgebra/EigenvalueDecomposition.java
@@ -4,7 +4,7 @@ package de.lmu.ifi.dbs.elki.math.linearalgebra;
This file is part of ELKI:
Environment for Developing KDD-Applications Supported by Index-Structures
- Copyright (C) 2011
+ Copyright (C) 2012
Ludwig-Maximilians-Universität München
Lehr- und Forschungseinheit für Datenbanksysteme
ELKI Development Team
@@ -253,7 +253,7 @@ public class EigenvalueDecomposition implements java.io.Serializable {
double g = d[l];
double p = (d[l + 1] - g) / (2.0 * e[l]);
- double r = MathUtil.hypotenuse(p, 1.0);
+ double r = MathUtil.fastHypot(p, 1.0);
if(p < 0) {
r = -r;
}
@@ -281,7 +281,7 @@ public class EigenvalueDecomposition implements java.io.Serializable {
s2 = s;
g = c * e[i];
h = c * p;
- r = MathUtil.hypotenuse(p, e[i]);
+ r = MathUtil.fastHypot(p, e[i]);
e[i + 1] = s * r;
s = e[i] / r;
c = p / r;