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

Fix kron indexing for types without a unique zero #56229

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

jishnub
Copy link
Contributor

@jishnub jishnub commented Oct 18, 2024

This fixes a bug introduced in #55941.

We may also take this opportunity to limit the scope of the @inbounds annotations, and also use axes to compute the bounds instead of hard-coding them.

The real "fix" here is on line 767, where l in 1:nA should have been l in 1:mB. Using axes avoids such errors, and makes the operation safer as well.

@jishnub jishnub added linear algebra Linear algebra arrays [a, r, r, a, y, s] bugfix This change fixes an existing bug backport 1.11 Change should be backported to release-1.11 labels Oct 18, 2024
@jishnub jishnub merged commit b01095e into master Oct 21, 2024
10 of 13 checks passed
@jishnub jishnub deleted the jishnub/kronfix branch October 21, 2024 05:58
KristofferC pushed a commit that referenced this pull request Oct 21, 2024
This fixes a bug introduced in
#55941.

We may also take this opportunity to limit the scope of the `@inbounds`
annotations, and also use `axes` to compute the bounds instead of
hard-coding them.

The real "fix" here is on line 767, where `l in 1:nA` should have been
`l in 1:mB`. Using `axes` avoids such errors, and makes the operation
safer as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrays [a, r, r, a, y, s] backport 1.11 Change should be backported to release-1.11 bugfix This change fixes an existing bug linear algebra Linear algebra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant