-
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 vcat(::AbstractBandedMatrix...) #448
Implement vcat(::AbstractBandedMatrix...) #448
Conversation
…i3v/BandedMatrices.jl into bandwidths-oneelement
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #448 +/- ##
==========================================
+ Coverage 89.61% 89.93% +0.32%
==========================================
Files 25 25
Lines 3571 3675 +104
==========================================
+ Hits 3200 3305 +105
+ Misses 371 370 -1 ☔ View full report in Codecov by Sentry. |
I've had a lot of issues involving randomly generated banded matrices where one or both of the bandwidths exceed the dimensions of a matrix (e.g a 2x2 BandedMatrix with bandwidths (4,3)). Is it worth adding something in the constructors that clamps |
No because having more bands than the dimension is permitted I would recommend not using random bandwidths in the unit tests |
src/interfaceimpl.jl
Outdated
end | ||
end | ||
|
||
LinearAlgebra.vcat(x::Union{OneElement, AbstractBandedMatrix}...) = vcat(BandedMatrix.(x)...) |
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.
LinearAlgebra.vcat(x::Union{OneElement, AbstractBandedMatrix}...) = vcat(BandedMatrix.(x)...) | |
Base.vcat(x::Union{OneElement, AbstractBandedMatrix}...) = vcat(convert.(BandedMatrix, x)...) |
No description provided.