Skip to content

Conversation

@gdalle
Copy link
Owner

@gdalle gdalle commented Oct 3, 2024

This is a version of #132 without the optimized implementations, just adding some tests for the following structured matrix types.

Package Type Coloring Decompression Performance
LinearAlgebra Diagonal
LinearAlgebra Bidiagonal
LinearAlgebra Tridiagonal
BandedMatrices BandedMatrix
BlockBandedMatrices BlockBandedMatrix
BlockBandedMatrices 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).

@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
Copy link
Owner Author

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
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (1cb3884) to head (e7fff0c).

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.
📢 Have feedback on the report? Share it here.

@gdalle gdalle closed this Oct 3, 2024
@gdalle
Copy link
Owner Author

gdalle commented Oct 3, 2024

Superseded by #137 (I screwed up with a git rebase)

@gdalle gdalle deleted the gd/structured-tests branch October 3, 2024 07:52
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