Fix pivot offset calculation for negative incx
This commit is contained in:
parent
0e9e951306
commit
eca2f50b48
|
@ -65,10 +65,9 @@ int CNAME(BLASLONG n, BLASLONG k1, BLASLONG k2, FLOAT dummy1, FLOAT *a, BLASLONG
|
|||
a--;
|
||||
k1 --;
|
||||
|
||||
#ifndef MINUS
|
||||
ipiv += k1;
|
||||
#else
|
||||
ipiv -= (k2 - 1) * incx;
|
||||
#ifdef MINUS
|
||||
ipiv -= (k2 - k1 - 1) * incx;
|
||||
#endif
|
||||
|
||||
if (n <= 0) return 0;
|
||||
|
|
Loading…
Reference in New Issue