Merge pull request #1869 from martin-frbg/axpy0
Handle special case INCX=0,INCY=0 in the axpy interface
This commit is contained in:
commit
5393759a98
|
@ -75,6 +75,11 @@ void CNAME(blasint n, FLOAT alpha, FLOAT *x, blasint incx, FLOAT *y, blasint inc
|
|||
|
||||
if (alpha == ZERO) return;
|
||||
|
||||
if (incx == 0 && incy == 0) {
|
||||
*y += n * alpha *(*x);
|
||||
return;
|
||||
}
|
||||
|
||||
IDEBUG_START;
|
||||
|
||||
FUNCTION_PROFILE_START();
|
||||
|
|
|
@ -82,6 +82,12 @@ void CNAME(blasint n, FLOAT *ALPHA, FLOAT *x, blasint incx, FLOAT *y, blasint in
|
|||
|
||||
if ((alpha_r == ZERO) && (alpha_i == ZERO)) return;
|
||||
|
||||
if (incx == 0 && incy == 0) {
|
||||
*y += n * (alpha_r * (*x) - alpha_i* (*(x+1)) );
|
||||
*(y+1) += n * (alpha_i * (*x) + alpha_r * (*(x +1)) );
|
||||
return;
|
||||
}
|
||||
|
||||
IDEBUG_START;
|
||||
|
||||
FUNCTION_PROFILE_START();
|
||||
|
|
Loading…
Reference in New Issue