Code formatting.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1189695 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2011-10-27 09:59:34 +00:00
parent b91a448a9f
commit 41df7f7f3e
1 changed files with 6 additions and 3 deletions

View File

@ -363,9 +363,12 @@ public class SingularValueDecomposition {
// Perform one qr step.
case 3: {
// Calculate the shift.
final double scale = FastMath.max(FastMath.max(FastMath.max(FastMath.max(
FastMath.abs(singularValues[p - 1]), FastMath.abs(singularValues[p - 2])), FastMath.abs(e[p - 2])),
FastMath.abs(singularValues[k])), FastMath.abs(e[k]));
final double maxPm1Pm2 = FastMath.max(FastMath.abs(singularValues[p - 1]),
FastMath.abs(singularValues[p - 2]));
final double scale = FastMath.max(FastMath.max(FastMath.max(maxPm1Pm2,
FastMath.abs(e[p - 2])),
FastMath.abs(singularValues[k])),
FastMath.abs(e[k]));
final double sp = singularValues[p - 1] / scale;
final double spm1 = singularValues[p - 2] / scale;
final double epm1 = e[p - 2] / scale;