Skip to content

Commit d684c43

Browse files
committed
bandedTopelitz * padded
1 parent ede4382 commit d684c43

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/banded/infbanded.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ _bandedfill_mul(M::MulAdd, ::Tuple{Any,InfAxes}, ::Tuple{InfAxes,Any}) = ApplyAr
434434

435435
mulreduce(M::Mul{BandedToeplitzLayout, BandedToeplitzLayout}) = ApplyArray(M)
436436
mulreduce(M::Mul{BandedToeplitzLayout}) = ApplyArray(M)
437+
mulreduce(M::Mul{BandedToeplitzLayout,<:PaddedLayout}) = MulAdd(M)
437438
mulreduce(M::Mul{<:Any, BandedToeplitzLayout}) = ApplyArray(M)
438439
mulreduce(M::Mul{<:BandedColumns{<:AbstractFillLayout}, PertToeplitzLayout}) = ApplyArray(M)
439440
mulreduce(M::Mul{<:PertToeplitzLayout, <:BandedColumns{<:AbstractFillLayout}}) = ApplyArray(M)

test/test_infbanded.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ import BandedMatrices: _BandedMatrix
4848
@test Eye(∞) * A isa BandedMatrix
4949
@test A * Eye(∞) isa BandedMatrix
5050

51+
@test A * [1; 2; Zeros(∞)] isa Vcat
52+
@test A * [1; 2; Zeros(∞)] == [A[1:5,1:2] * [1,2]; Zeros(∞)]
53+
5154
@test MemoryLayout(Tridiagonal(Fill(1,∞), Fill(2,∞), Fill(3,∞))) isa TridiagonalToeplitzLayout
5255
@test MemoryLayout(Bidiagonal(Fill(1,∞), Fill(2,∞), :U)) isa BidiagonalToeplitzLayout
5356
@test MemoryLayout(SymTridiagonal(Fill(1,∞), Fill(2,∞))) isa TridiagonalToeplitzLayout

0 commit comments

Comments
 (0)