Skip to content

Commit 9df418f

Browse files
fix BlockBandedMatrix tests to new version
1 parent 030391e commit 9df418f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ rowind,colind=findstructralnz(B)
6262
@test [B[rowind[i],colind[i]] for i in 1:length(rowind)]==[5,6,7,8,1,2,3,4]
6363

6464
using BlockBandedMatrices
65-
BB=BlockBandedMatrix(Ones(10,10),([1,2,3,4],[4,3,2,1]),(1,0))
65+
BB=BlockBandedMatrix(Ones(10,10),[1,2,3,4],[4,3,2,1],(1,0))
6666
BB[Block(1,1)].=[1 2 3 4]
6767
BB[Block(2,1)].=[5 6 7 8;9 10 11 12]
6868
rowind,colind=findstructralnz(BB)
@@ -76,7 +76,7 @@ dense=collect(Ones(8,8))
7676
for i in 1:8
7777
dense[:,i].=[1,2,3,4,5,6,7,8]
7878
end
79-
BBB=BandedBlockBandedMatrix(dense, ([4, 4] ,[4, 4]), (1, 1), (1, 1))
79+
BBB=BandedBlockBandedMatrix(dense, [4, 4] ,[4, 4], (1, 1), (1, 1))
8080
rowind,colind=findstructralnz(BBB)
8181
@test [BBB[rowind[i],colind[i]] for i in 1:length(rowind)]==
8282
[1,2,3,1,2,3,4,2,3,4,5,6,7,5,6,7,8,6,7,8,

0 commit comments

Comments
 (0)