|
1 | 1 | using FiniteDiff, LinearAlgebra, SparseArrays, Test, LinearAlgebra, |
2 | | - BlockBandedMatrices, ArrayInterfaceCore, BandedMatrices, |
3 | | - ArrayInterfaceBlockBandedMatrices |
| 2 | + BlockBandedMatrices, ArrayInterface, BandedMatrices |
4 | 3 |
|
5 | 4 | fcalls = 0 |
6 | 5 | function f(dx, x) |
@@ -110,12 +109,12 @@ end |
110 | 109 | x = rand(10000) |
111 | 110 | Jbbb = BandedBlockBandedMatrix(Ones(10000, 10000), fill(100, 100), fill(100, 100), (1, 1), (1, 1)) |
112 | 111 | Jsparse = sparse(Jbbb) |
113 | | -colorsbbb = ArrayInterfaceCore.matrix_colors(Jbbb) |
| 112 | +colorsbbb = ArrayInterface.matrix_colors(Jbbb) |
114 | 113 | FiniteDiff.finite_difference_jacobian!(Jbbb, f, x, colorvec=colorsbbb) |
115 | 114 | FiniteDiff.finite_difference_jacobian!(Jsparse, f, x, colorvec=colorsbbb) |
116 | 115 | @test Jbbb ≈ Jsparse |
117 | 116 | Jbb = BlockBandedMatrix(similar(Jsparse), fill(100, 100), fill(100, 100), (1, 1)); |
118 | | -colorsbb = ArrayInterfaceCore.matrix_colors(Jbb) |
| 117 | +colorsbb = ArrayInterface.matrix_colors(Jbb) |
119 | 118 | FiniteDiff.finite_difference_jacobian!(Jbb, f, x, colorvec=colorsbb) |
120 | 119 | @test Jbb ≈ Jsparse |
121 | 120 |
|
|
164 | 163 | A = [[1 1; 0 1], [1 1 1], [1.0 1.0; 1.0 1.0; 1.0 1.0], [true true; true true]] |
165 | 164 | for a in A |
166 | 165 | 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)) |
168 | 167 | @test (rows_index, cols_index) == (rows_index2, cols_index2) |
169 | 168 | end |
170 | 169 |
|
|
0 commit comments