-
Notifications
You must be signed in to change notification settings - Fork 6
Add tests on structured matrices #136
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
Conversation
@test structurally_orthogonal_columns(A, color) | ||
if VERSION >= v"1.10" || A isa Union{Diagonal,Bidiagonal,Tridiagonal} | ||
# banded matrices not supported by ArrayInterface on Julia 1.6 | ||
# @test color == ArrayInterface.matrix_colors(A) # TODO: uncomment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To merge #132, this needs to be uncommented
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #136 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 11 11
Lines 871 871
=========================================
Hits 871 871 ☔ View full report in Codecov by Sentry. |
Superseded by #137 (I screwed up with a |
This is a version of #132 without the optimized implementations, just adding some tests for the following structured matrix types.
Diagonal
Bidiagonal
Tridiagonal
BandedMatrix
BlockBandedMatrix
BandedBlockBandedMatrix
The fallback decompression already works without error: it follows the sparsity pattern, so it avoids writing into forbidden locations (say, outside of the diagonal for a
Diagonal
).