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

sparse linalg: simplify SELLC spmv kernel #912

Merged
merged 6 commits into from
Jan 3, 2025

Conversation

jalvesz
Copy link
Contributor

@jalvesz jalvesz commented Dec 26, 2024

@ivan-pi realized that the initial proposal for the SELLC spmv could be improved by defaulting the 0-valued-existing indexes of the column array to an actual index in the column space of the matrix. This change avoids the need for a conditional within the kernel.

This PR proposes to change the default index to 1.

Copy link
Contributor

@perazz perazz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement, thank you @jalvesz. LGTM.

src/stdlib_sparse_spmv.fypp Show resolved Hide resolved
src/stdlib_sparse_spmv.fypp Show resolved Hide resolved
src/stdlib_sparse_spmv.fypp Show resolved Hide resolved
Copy link
Member

@jvdp1 jvdp1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you @jalvesz for the PR, and well seen from @ivan-pi

@perazz perazz merged commit 05e44f0 into fortran-lang:master Jan 3, 2025
15 checks passed
@jalvesz jalvesz deleted the sparse_sellc branch January 3, 2025 19:45
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.

3 participants