From f0aeb29d169cb3114bb1dca904b2f22962900760 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Sun, 5 Oct 2008 18:53:18 +0000 Subject: [PATCH] replaced an intermediate variable by its opposite for easier to read expression git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@701846 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/commons/math/linear/TriDiagonalTransformer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/commons/math/linear/TriDiagonalTransformer.java b/src/java/org/apache/commons/math/linear/TriDiagonalTransformer.java index 249c8e031..6d197abfe 100644 --- a/src/java/org/apache/commons/math/linear/TriDiagonalTransformer.java +++ b/src/java/org/apache/commons/math/linear/TriDiagonalTransformer.java @@ -118,12 +118,12 @@ class TriDiagonalTransformer implements Serializable { final double[] qtJ = qtData[j]; double beta = 0; for (int i = k; i < m; ++i) { - beta -= qtJ[i] * hK[i]; + beta += qtJ[i] * hK[i]; } beta *= inv; for (int i = k; i < m; ++i) { - qtJ[i] -= beta * hK[i]; + qtJ[i] += beta * hK[i]; } } }