-
Notifications
You must be signed in to change notification settings - Fork 38
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
implement bandwidths for OneElement #447
implement bandwidths for OneElement #447
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #447 +/- ##
==========================================
+ Coverage 89.61% 89.81% +0.20%
==========================================
Files 25 25
Lines 3571 3642 +71
==========================================
+ Hits 3200 3271 +71
Misses 371 371 ☔ View full report in Codecov by Sentry. |
test/test_interface.jl
Outdated
@test bandwidths(o) == (2,-2) | ||
n,m = rand(1:10,2) | ||
o = OneElement(1, (rand(1:n),rand(1:m)), (n, m)) | ||
@test bandwidths(o) == bandwidths(BandedMatrix(o)) |
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.
This test is a tautology since BandedMatrix
calls bandwidths(o)
to determine its bandwidths. I think the following will be better:
@test bandwidths(o) == bandwidths(BandedMatrix(o)) | |
@test bandwidths(o) == bandwidths(sparse(o)) |
You'll need to add SparseArrays to the using statement
…i3v/BandedMatrices.jl into bandwidths-oneelement
Shouldn't it be (4, -4) or am I mistaken? |
Ah probably it’s not overridden yet for |
There seems to be a similar behaviour for matrices where the width bottlenecks the negative bandwidth. |
OK. I don't think I wrote that code so it must be a bug. Do you think you can fix it? It should be here: |
No description provided.