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

Buffer fix #10

Merged
merged 4 commits into from
Jun 10, 2022
Merged

Buffer fix #10

merged 4 commits into from
Jun 10, 2022

Conversation

rasmushenningsson
Copy link
Collaborator

Fix for #9.
Also keep type when copying adjoint or transpose or using permutedims.

Julia 1.7.x introduced _goodbuffers and _checkbuffers but use them
incorrectly for AbstractSparseArrays. This is fixed on 1.8, but we need
a workaround in 1.7.x.

Also fixed bug where copy(X'), copy(transpose(X)) and permutedims(X)
didn't return ThreadedSparseMatrixCSC.
@codecov
Copy link

codecov bot commented Jun 9, 2022

Codecov Report

Merging #10 (f60bd23) into master (8c58f54) will decrease coverage by 9.34%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
- Coverage   98.91%   89.56%   -9.35%     
==========================================
  Files           1        1              
  Lines          92      115      +23     
==========================================
+ Hits           91      103      +12     
- Misses          1       12      +11     
Impacted Files Coverage Δ
src/ThreadedSparseArrays.jl 89.56% <75.00%> (-9.35%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8c58f54...f60bd23. Read the comment docs.

Simplify code by @eval loop for copy and permutedims.
Add unit tests.
@rasmushenningsson rasmushenningsson merged commit 2c96928 into master Jun 10, 2022
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