commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r701846 - /commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/linear/TriDiagonalTransformer.java
Date Sun, 05 Oct 2008 18:53:18 GMT
Author: luc
Date: Sun Oct  5 11:53:18 2008
New Revision: 701846

URL: http://svn.apache.org/viewvc?rev=701846&view=rev
Log:
replaced an intermediate variable by its opposite for easier to read expression

Modified:
    commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/linear/TriDiagonalTransformer.java

Modified: commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/linear/TriDiagonalTransformer.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/linear/TriDiagonalTransformer.java?rev=701846&r1=701845&r2=701846&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/linear/TriDiagonalTransformer.java
(original)
+++ commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/linear/TriDiagonalTransformer.java
Sun Oct  5 11:53:18 2008
@@ -118,12 +118,12 @@
                         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];
                         }
                     }
                 }



Mime
View raw message