Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/banded/BandedMatrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ const BandedSubBandedMatrix{T, C, R, I1<:AbstractUnitRange, I2<:AbstractUnitRang
isbanded(::BandedSubBandedMatrix) = true
sublayout(::BandedColumns{L}, ::Type{<:Tuple{AbstractUnitRange,J}}) where {L,J<:AbstractUnitRange} =
bandedcolumns(sublayout(L(),Tuple{Slice{OneTo{Int}},J}))
getindex_value(A::SubArray) = getindex_value(parent(A))
BroadcastStyle(::Type{<:BandedSubBandedMatrix}) = BandedStyle()

function _shift(bm::BandedSubBandedMatrix)
Expand Down
2 changes: 2 additions & 0 deletions src/banded/gbmm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ function gbmm!(tA::Char, tB::Char, α::T, A::AbstractMatrix{T}, B::AbstractMatri
@assert ν == size(B,1)
@assert m == size(C,2)

(n == 0 || ν == 0 || m == 0) && return C

Al, Au = bandwidths(A)
Bl, Bu = bandwidths(B)
C̃l, C̃u = bandwidths(C)
Expand Down
2 changes: 1 addition & 1 deletion src/generic/indexing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ inbands_setindex!(x::Transpose, v, i::Integer, j::Integer) =
# on the memory layout
###

sub_materialize(::AbstractBandedLayout, V) = BandedMatrix(V)
sub_materialize(::AbstractBandedLayout, V, _) = BandedMatrix(V)

@inline getindex(A::AbstractBandedMatrix, kr::Colon, jr::Colon) = lazy_getindex(A, kr, jr)
@inline getindex(A::AbstractBandedMatrix, kr::Colon, jr::AbstractUnitRange) = lazy_getindex(A, kr, jr)
Expand Down