Skip to content

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

Closed

Description

@xianyi

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;

}

Activity

  1. xianyi commented on Feb 16, 2011

    @xianyi
    CollaboratorAuthor

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

  2. added a commit that references this issue on Sep 19, 2018
  3. added a commit that references this issue on Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions