Skip to content

Preserve bandwidth in ConcreteMultiplication to BandedMatrix conversion #358

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

Merged
merged 1 commit into from
Apr 17, 2025

Conversation

jishnub
Copy link
Member

@jishnub jishnub commented Apr 17, 2025

Currently, multiplying a BandedMatrix by a scalar doesn't necessarily preserve its bandwidth, which implies that looping over the bands might lead to out-of-bounds access. This PR ensures that the bandwidths are preserved in scalar multiplication.

Also, remove the valJ logic, as a Recurrence is a TridiagonalOperator, and is certain to have three bands.

@jishnub jishnub merged commit 42afff9 into JuliaApproximation:master Apr 17, 2025
8 of 10 checks passed
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