Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
dlfivefifty committed Jul 19, 2023
1 parent 0bf9814 commit 9a418a2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LazyBandedMatrices"
uuid = "d7e5e226-e90b-4449-9968-0f923699bf6f"
authors = ["Sheehan Olver <[email protected]>"]
version = "0.8.12"
version = "0.8.13"

[deps]
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
Expand Down
5 changes: 0 additions & 5 deletions src/LazyBandedMatrices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,6 @@ prodsubblockbandwidths(A...) = broadcast(+, subblockbandwidths.(A)...)
blockbandwidths(M::MulMatrix) = prodblockbandwidths(M.args...)
subblockbandwidths(M::MulMatrix) = prodsubblockbandwidths(M.args...)

mulreduce(M::Mul{<:StructuredApplyLayouts{F},<:StructuredApplyLayouts{G}}) where {F,G} = Mul{ApplyLayout{F},ApplyLayout{G}}(M.A, M.B)
mulreduce(M::Mul{<:StructuredApplyLayouts{F},D}) where {F,D} = Mul{ApplyLayout{F},D}(M.A, M.B)
mulreduce(M::Mul{D,<:StructuredApplyLayouts{F}}) where {F,D} = Mul{D,ApplyLayout{F}}(M.A, M.B)
mulreduce(M::Mul{<:StructuredApplyLayouts{F},<:DiagonalLayout}) where F = Rmul(M)
mulreduce(M::Mul{<:DiagonalLayout,<:StructuredApplyLayouts{F}}) where F = Lmul(M)


###
Expand Down
1 change: 1 addition & 0 deletions test/test_blockkron.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import BandedMatrices: BandedColumns
@testset "2D" begin
A = brand(5,5,2,2)
B = brand(2,2,1,0)
@test isbanded(Kron(A,B))
K = kron(A,B)
@test K isa BandedMatrix
@test bandwidths(K) == (5,4)
Expand Down

0 comments on commit 9a418a2

Please sign in to comment.