Skip to content

Fixed bug in amaxv which returned incorrect index on constant input. - #379

Closed
matcross wants to merge 1 commit into
flame:masterfrom
matcross:master
Closed

matcross wants to merge 1 commit into
flame:masterfrom
matcross:master

Conversation

@matcross

@matcross matcross commented Mar 19, 2020 •

Copy link
Copy Markdown

Hi,

A constant vector with increment 1 and more than 3 elements gets the wrong amaxv index computed because of an incorrect comparison operator when initializing i_max_l.

We at NAG noticed this was affecting a few of our LAPACK test programs.

I'm afraid I didn't look into an associated test case for the BLIS framework. I do have a Fortran test program, if that helps at all:

   Program p
     Double Precision, Allocatable :: x(:)
     x = [ (42.D0,i=1,4) ]
     If (idamax(size(x),x,1)/=1) Stop 'FAIL'
     Print *, 'ok'
   End Program

@matcross matcross mentioned this pull request Mar 20, 2020
@matcross

Copy link
Copy Markdown
Author

Cancelled in light of further issues having been discovered. This here doesn't seem to be the right solution for the whole of the story. See also #380.

@matcross matcross closed this Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant