Skip to content

Conversation

@jalvesz
Copy link
Contributor

@jalvesz jalvesz commented Feb 10, 2026

(exact copy of #1082 which got closed and couldn't directly merge, had to recover by hand the changes)
This PR proposes support for binary operators +, -, *, / for all sparse matrices defined in the stdlib_sparse_kinds module.

  • Implementation with pure functions
  • Unit testing (ELL and SELLC skipped because of explicit zeros causing NaNs at division)
  • documentation

Additional fixes needed for this PR:

  • Include support for from_ijv for the CSC type
  • fix COO sorting call during coo2csc in case of a rectangular matrix.

@jalvesz
Copy link
Contributor Author

jalvesz commented Feb 10, 2026

@jvdp1 when I tried to recover the changes from master into the PR I lost the changes and wasn't able to directly merge. Sorry about that. I managed to recover the files from the github history and then just copy pasted the required changes.

@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.55%. Comparing base (9591c0d) to head (d7dcb15).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1117   +/-   ##
=======================================
  Coverage   68.55%   68.55%           
=======================================
  Files         396      396           
  Lines       12746    12746           
  Branches     1376     1376           
=======================================
  Hits         8738     8738           
  Misses       4008     4008           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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