Skip to content

Commit 0bd2cbb

Browse files
committed
Start fix for addition of symmetric
1 parent fd778c6 commit 0bd2cbb

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/runtests.jl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,15 @@ include("test_infbanded.jl")
195195

196196
b = [ones(10); zeros(∞)]
197197
@test (Ms * b)[Block.(1:6)] == Ms[Block.(1:6), Block.(1:4)]*ones(10)
198-
@test ((Ms * Ms) * b)[Block.(1:6)] == (Ms * (Ms * b))[Block.(1:6)]
199-
@test ((Ms + Ms) * b)[Block.(1:6)] == (2*(Ms * b))[Block.(1:6)]
198+
@test ((Ms * Ms) * b)[Block.(1:6)] == (Ms * (Ms * b))[Block.(1:6)]
199+
@test ((Ms + Ms) * b)[Block.(1:6)] == (2*(Ms * b))[Block.(1:6)]
200+
201+
dat = BlockBroadcastArray(hcat, float.(k), Zeros((axes(n, 1),)), float.(n))
202+
M = BlockBandedMatrices._BandedBlockBandedMatrix(dat', axes(k, 1), (-1, 1), (1, 1))
203+
M+M
204+
205+
# doesn't work
206+
Ms+Ms |> typeof
200207
end
201208
end
202209

0 commit comments

Comments
 (0)