Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit ab3d21a

Browse files
Use ArrayInterfaceBlockBandedMatrices in tests
1 parent b702219 commit ab3d21a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ VertexSafeGraphs = "0.2"
3131
julia = "1.6"
3232

3333
[extras]
34+
ArrayInterfaceBlockBandedMatrices = "5331f1e9-51c7-46b0-a9b0-df4434785e0a"
3435
BandedMatrices = "aae01518-5342-5314-be14-df237901396f"
3536
BlockBandedMatrices = "ffab5731-97b5-5995-9138-79e8c1846df0"
3637
IterativeSolvers = "42fd0dbc-a981-5370-80f2-aaf504508153"
@@ -43,4 +44,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
4344
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
4445

4546
[targets]
46-
test = ["Test", "BandedMatrices", "BlockBandedMatrices", "IterativeSolvers", "Pkg", "Random", "SafeTestsets", "Zygote", "SparsityDetection", "StaticArrays"]
47+
test = ["Test", "ArrayInterfaceBlockBandedMatrices", "BandedMatrices", "BlockBandedMatrices", "IterativeSolvers", "Pkg", "Random", "SafeTestsets", "Zygote", "SparsityDetection", "StaticArrays"]

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,3 +317,12 @@ These all have the same interface, where `J*v` utilizes the out-of-place
317317
Jacobian-vector or Hessian-vector function, whereas `mul!(res,J,v)` utilizes
318318
the appropriate in-place versions. To update the location of differentiation
319319
in the operator, simply mutate the vector `u`: `J.u .= ...`.
320+
321+
# Note about sparse differentiation of BandedMatrices and BlockBandedMatrices
322+
323+
These two matrix types need the dependencies ArrayInterfaceBandedMatrices.jl and
324+
ArrayInterfaceBlockBandedMatrices.jl to basically work with any functionality
325+
(anywhere). For now, the right thing to do is to add these libraries and do
326+
`import` on them if you are using BandedMatrices.jl or BlockBandedMatrices.jl
327+
for sparsity patterns. In the future, those two packages should just depend on
328+
ArrayInterface.jl and remove this issue entirely from the user space.

0 commit comments

Comments
 (0)