-
Notifications
You must be signed in to change notification settings - Fork 55
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 performance trap for sparse view multiplication #476
Conversation
c2a3c9e
to
3f51402
Compare
3f51402
to
afa4be6
Compare
getcolptr
for sparse matrix views5bf1704
to
4d15843
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #476 +/- ##
=======================================
Coverage 85.17% 85.17%
=======================================
Files 12 12
Lines 8865 8866 +1
=======================================
+ Hits 7551 7552 +1
Misses 1314 1314 ☔ View full report in Codecov by Sentry. |
There's an opportunity here to bikeshed about names of internal aliases... just in case things can be improved for more clarity. I was not very creative. |
It turns out that for non-triangular sparse matrices,
getcolptr
, which can be easily computed from the parent array, is not used. But all the otherget*
functions don't require a unit range as the second slicing argumnet in column views, so the fast multiplication kernels also apply to that situation.Fixes #475.