diff options
author | Erich Schubert <erich@debian.org> | 2012-06-02 17:47:03 +0200 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2019-03-09 22:30:32 +0000 |
commit | 593eae6c91717eb9f4ff5088ba460dd4210509c0 (patch) | |
tree | d97e8cefb48773a382542e9e9d4a6796202a044a /src/de/lmu/ifi/dbs/elki/math/linearalgebra/EigenvalueDecomposition.java | |
parent | e580e42664ca92fbf8792bc39b8d59383db829fe (diff) | |
parent | c36aa2a8fd31ca5e225ff30278e910070cd2c8c1 (diff) |
Import Debian changes 0.5.0~beta2-1
elki (0.5.0~beta2-1) unstable; urgency=low
* New upstream beta release.
* Needs GNU Trove 3, in NEW.
* Build with OpenJDK7, as OpenJDK6 complains.
elki (0.5.0~beta1-1) unstable; urgency=low
* New upstream beta release.
* Needs GNU Trove 3, not yet in Debian (private package)
* Build with OpenJDK7, as OpenJDK6 complains.
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.java | 6 |
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; |