Commit d23b817
committed
Fix loop variable bugs in LINPACK regression tests
Fixed multiple loop variable reuse bugs in local LINPACK implementations:
- dgefa_local: Changed inner loop variable from 'l' to 'i' to avoid
corrupting pivot index
- dgesl_local: Same fix for inner loop variable collision
- dpofa_local: Changed loop variable from 'info' to 'i' (info is output param)
- dposl_local: Complete rewrite with proper loop variables (was using
real 't' and integer 'k' incorrectly)
All 6 LINPACK tests now pass:
- DGEFA/DGESL: 3 tests (2x2 system, identity, Hilbert 3x3)
- DPOFA/DPOSL: 3 tests (2x2 SPD, identity, diagonal)1 parent 21483f4 commit d23b817
1 file changed
Lines changed: 23 additions & 25 deletions
Lines changed: 23 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | | - | |
| 284 | + | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
312 | | - | |
| 311 | + | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
321 | | - | |
| 320 | + | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
| 332 | + | |
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
340 | | - | |
| 339 | + | |
| 340 | + | |
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| 357 | + | |
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
360 | 361 | | |
361 | | - | |
| 362 | + | |
362 | 363 | | |
363 | 364 | | |
364 | | - | |
| 365 | + | |
| 366 | + | |
365 | 367 | | |
366 | 368 | | |
367 | | - | |
368 | | - | |
| 369 | + | |
| 370 | + | |
369 | 371 | | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
| 372 | + | |
375 | 373 | | |
376 | 374 | | |
377 | | - | |
| 375 | + | |
378 | 376 | | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
383 | 380 | | |
| 381 | + | |
384 | 382 | | |
385 | 383 | | |
386 | 384 | | |
| |||
0 commit comments