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
This commit is contained in:
Luc Maisonobe 2008-10-05 18:53:18 +00:00
parent fcb63bbdac
commit f0aeb29d16
1 changed files with 2 additions and 2 deletions

View File

@ -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];
}
}
}