Skip to content

Commit dd49e3a

Browse files
committed
SemiseparableMatrices v0.3
1 parent ddca8a6 commit dd49e3a

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ InfiniteArrays = "0.12"
2727
LazyArrays = "0.21.8, 0.22"
2828
LazyBandedMatrices = "0.7.1"
2929
MatrixFactorizations = "0.8"
30-
SemiseparableMatrices = "0.2.7"
30+
SemiseparableMatrices = "0.2.7, 0.3"
3131
julia = "1.6"
3232

3333
[extras]

test/test_infbanded.jl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using InfiniteLinearAlgebra, InfiniteArrays, BandedMatrices, FillArrays, LazyBandedMatrices, Test
1+
using InfiniteLinearAlgebra, InfiniteArrays, BandedMatrices, FillArrays, LazyBandedMatrices, LazyArrays, Test
22
import BandedMatrices: _BandedMatrix
33

44
@testset "∞-banded" begin
@@ -140,4 +140,13 @@ import BandedMatrices: _BandedMatrix
140140
A, B = Diagonal(Fill(2,∞)) , LazyBandedMatrices.Bidiagonal(exp.(1:∞), exp.(1:∞), :L)
141141
@test (A*B)[1:10,1:10] (B*A)[1:10,1:10] 2B[1:10,1:10]
142142
end
143+
144+
@testset "concat" begin
145+
H = ApplyArray(hvcat, 2, 1, [1 Zeros(1,∞)], [1; Zeros(∞)], Diagonal(1:∞))
146+
@test bandwidths(H) == (1,1)
147+
H = ApplyArray(hvcat, 2, 1, [0 Zeros(1,∞)], [0; Zeros(∞)], Diagonal(1:∞))
148+
@test bandwidths(H) == (0,0)
149+
H = ApplyArray(hvcat, (2,2), 1, [1 Zeros(1,∞)], [1; Zeros(∞)], Diagonal(1:∞))
150+
@test_broken bandwidths(H) == (1,1)
151+
end
143152
end

0 commit comments

Comments
 (0)