Skip to content

BUG: Fix complex vector dot with more than NPY_CBLAS_CHUNK elements#22327

Merged
charris merged 1 commit intonumpy:mainfrom
seberg:issue22262
Sep 22, 2022
Merged

BUG: Fix complex vector dot with more than NPY_CBLAS_CHUNK elements#22327
charris merged 1 commit intonumpy:mainfrom
seberg:issue22262

Conversation

@seberg
Copy link
Copy Markdown
Member

@seberg seberg commented Sep 22, 2022

The iteration was simply using the wrong value, the larger value might even work sometimes, but then we do another iteration counting the remaining elements twice.

Closes gh-22262

The iteration was simply using the wrong value, the larger value
might even work sometimes, but then we do another iteration counting
the remaining elements twice.

Closes numpygh-22262
@seberg seberg added the 09 - Backport-Candidate PRs tagged should be backported label Sep 22, 2022
@charris charris merged commit d23050a into numpy:main Sep 22, 2022
@seberg seberg deleted the issue22262 branch September 22, 2022 17:23
@charris
Copy link
Copy Markdown
Member

charris commented Sep 22, 2022

Thanks Sebastian, I can confirm that this fixes things for me.

@leofang
Copy link
Copy Markdown
Contributor

leofang commented Sep 22, 2022

Nice fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: np.dot incorrect for more than 2^30 complex elements

3 participants