Skip to content

Commit a4a9b26

Browse files
Fix tests
No actual updates, just clean up from the ArrayInterfaceCore removal and package extensions stuff.
1 parent ace53c6 commit a4a9b26

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

Project.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ StaticArrays = "1.0"
1818
julia = "1.6"
1919

2020
[extras]
21-
ArrayInterfaceBlockBandedMatrices = "5331f1e9-51c7-46b0-a9b0-df4434785e0a"
2221
BandedMatrices = "aae01518-5342-5314-be14-df237901396f"
2322
BlockBandedMatrices = "ffab5731-97b5-5995-9138-79e8c1846df0"
2423
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
2524
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
2625
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2726

2827
[targets]
29-
test = ["Test", "ArrayInterfaceBlockBandedMatrices", "BlockBandedMatrices", "BandedMatrices", "Pkg", "SafeTestsets"]
28+
test = ["Test", "BlockBandedMatrices", "BandedMatrices", "Pkg", "SafeTestsets"]

test/coloring_tests.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using FiniteDiff, LinearAlgebra, SparseArrays, Test, LinearAlgebra,
2-
BlockBandedMatrices, ArrayInterfaceCore, BandedMatrices,
3-
ArrayInterfaceBlockBandedMatrices
2+
BlockBandedMatrices, ArrayInterface, BandedMatrices
43

54
fcalls = 0
65
function f(dx, x)
@@ -110,12 +109,12 @@ end
110109
x = rand(10000)
111110
Jbbb = BandedBlockBandedMatrix(Ones(10000, 10000), fill(100, 100), fill(100, 100), (1, 1), (1, 1))
112111
Jsparse = sparse(Jbbb)
113-
colorsbbb = ArrayInterfaceCore.matrix_colors(Jbbb)
112+
colorsbbb = ArrayInterface.matrix_colors(Jbbb)
114113
FiniteDiff.finite_difference_jacobian!(Jbbb, f, x, colorvec=colorsbbb)
115114
FiniteDiff.finite_difference_jacobian!(Jsparse, f, x, colorvec=colorsbbb)
116115
@test Jbbb Jsparse
117116
Jbb = BlockBandedMatrix(similar(Jsparse), fill(100, 100), fill(100, 100), (1, 1));
118-
colorsbb = ArrayInterfaceCore.matrix_colors(Jbb)
117+
colorsbb = ArrayInterface.matrix_colors(Jbb)
119118
FiniteDiff.finite_difference_jacobian!(Jbb, f, x, colorvec=colorsbb)
120119
@test Jbb Jsparse
121120

@@ -164,7 +163,7 @@ end
164163
A = [[1 1; 0 1], [1 1 1], [1.0 1.0; 1.0 1.0; 1.0 1.0], [true true; true true]]
165164
for a in A
166165
rows_index, cols_index = FiniteDiff._findstructralnz(a)
167-
rows_index2, cols_index2 = ArrayInterfaceCore.findstructralnz(sparse(a))
166+
rows_index2, cols_index2 = ArrayInterface.findstructralnz(sparse(a))
168167
@test (rows_index, cols_index) == (rows_index2, cols_index2)
169168
end
170169

0 commit comments

Comments
 (0)