Lines 224-233
Link Here
|
224 |
} |
224 |
} |
225 |
// main iteration |
225 |
// main iteration |
226 |
while ((this.precision(oldX, newX) > this._minPrecision) && (iterations < this._maxIterations)) { |
226 |
while ((this.precision(oldX, newX) > this._minPrecision) && (iterations < this._maxIterations)) { |
|
|
227 |
System.arraycopy(oldX, 0, newX, 0, _n); |
227 |
for (i = 0; i < _n; i++) { |
228 |
for (i = 0; i < _n; i++) { |
228 |
oldX[i] = newX[i]; |
|
|
229 |
} |
230 |
for (i = 0; i < _n; i++) { |
231 |
newX[i] = _B[i]; |
229 |
newX[i] = _B[i]; |
232 |
for (j = 0; j < i; j++) { |
230 |
for (j = 0; j < i; j++) { |
233 |
newX[i] = newX[i] - (_A[i][j] * oldX[j]); |
231 |
newX[i] = newX[i] - (_A[i][j] * oldX[j]); |