Browse Source

Fix offset calculation for negative incx

tags/v0.3.20
Martin Kroeker GitHub 3 years ago
parent
commit
3b6293f5a0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      lapack/laswp/generic/zlaswp_k_1.c

+ 2
- 3
lapack/laswp/generic/zlaswp_k_1.c View File

@@ -59,10 +59,9 @@ int CNAME(BLASLONG n, BLASLONG k1, BLASLONG k2, FLOAT dummy1, FLOAT dummy4,
lda *= 2;
k1 --;

#ifndef MINUS
ipiv += k1;
#else
ipiv -= (k2 - 1) * incx;
#ifdef MINUS
ipiv -= (k2 - k1 - 1) * incx;
#endif

if (n <= 0) return 0;


Loading…
Cancel
Save