Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The result is wrong in rot, when INCX and INCY equal to 0. #4

Closed
xianyi opened this issue Feb 15, 2011 · 1 comment
Closed

The result is wrong in rot, when INCX and INCY equal to 0. #4

xianyi opened this issue Feb 15, 2011 · 1 comment
Labels

Comments

@xianyi
Copy link
Collaborator

xianyi commented Feb 15, 2011

José Luis García Pallero reported it on GotoBLAS mailing list.
The test code:

include<stdio.h>

//#include<common.h>
//#include<cblas.h>
void drot_(int_,double_,int_,double_,int_,double_,double*);

int main()
{

int N=4,incX=0,incY=0;

double c=0.25,s=0.5;

double x1[]={1.0,3.0,5.0,7.0};

double y1[]={2.0,4.0,6.0,8.0};

double x2=-0.21484375,y2=0.0390625;

drot_(&N,x1,&incX,y1,&incY,&c,&s);

printf("Results GOTO...: %11.8lf %11.8lf\n",x1[0],y1[0]);

printf("Correct results: %11.8lf %11.8lf\n",x2,y2);

return 0;

}

@xianyi
Copy link
Collaborator Author

xianyi commented Feb 16, 2011

closed by c5852d4 csrot returned the wrong result when incx==incy==0.

martin-frbg added a commit that referenced this issue Sep 19, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant