diff --git a/Project.toml b/Project.toml index 812ea014..a26a4435 100644 --- a/Project.toml +++ b/Project.toml @@ -52,6 +52,7 @@ BandedMatrices = "aae01518-5342-5314-be14-df237901396f" BlockBandedMatrices = "ffab5731-97b5-5995-9138-79e8c1846df0" CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" ChainRules = "082447d4-558c-5d27-93f4-14fc19e9eca2" +FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b" GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527" Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" @@ -65,4 +66,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c" [targets] -test = ["SafeTestsets", "Pkg", "Test", "Aqua", "Random", "SparseArrays", "SuiteSparse", "BandedMatrices", "BlockBandedMatrices", "GPUArraysCore", "StaticArrays", "StaticArraysCore", "Tracker", "ReverseDiff", "ChainRules"] +test = ["SafeTestsets", "Pkg", "Test", "Aqua", "Random", "SparseArrays", "SuiteSparse", "BandedMatrices", "BlockBandedMatrices", "GPUArraysCore", "StaticArrays", "StaticArraysCore", "Tracker", "ReverseDiff", "ChainRules", "FillArrays"] diff --git a/test/blockbandedmatrices.jl b/test/blockbandedmatrices.jl index 9f29716d..5f158868 100644 --- a/test/blockbandedmatrices.jl +++ b/test/blockbandedmatrices.jl @@ -1,11 +1,12 @@ using ArrayInterface using BlockBandedMatrices +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,