Skip to content

Commit

Permalink
Update blockbandedmatrices.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Jun 5, 2024
1 parent 65ce9d4 commit ecabd8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/blockbandedmatrices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ using FillArrays
using Test

BB=BlockBandedMatrix(Ones(10,10),[1,2,3,4],[4,3,2,1],(1,0))
BB[Block(1,1)].=[1 2 3 4]
BB[Block(2,1)].=[5 6 7 8;9 10 11 12]
BB[BlockBandedMatrices.Block(1,1)].=[1 2 3 4]
BB[BlockBandedMatrices.Block(2,1)].=[5 6 7 8;9 10 11 12]
rowind,colind=ArrayInterface.findstructralnz(BB)
@test [BB[rowind[i],colind[i]] for i in 1:length(rowind)]==
[1,5,9,2,6,10,3,7,11,4,8,12,
Expand Down

0 comments on commit ecabd8e

Please sign in to comment.