|
1 | | -using ..SparseArrayInterface: Zero, getindex_zero_function |
| 1 | +using ..SparseArraysBase: Zero, getindex_zero_function |
2 | 2 | # TODO: Put into `DiagonalArraysSparseArrayDOKsExt`? |
3 | 3 | using ..SparseArrayDOKs: SparseArrayDOKs, SparseArrayDOK |
4 | 4 |
|
@@ -88,20 +88,20 @@ function Base.similar(a::DiagonalArray, elt::Type, dims::Tuple{Vararg{Int}}) |
88 | 88 | return DiagonalArray{elt}(undef, dims, getindex_zero_function(a)) |
89 | 89 | end |
90 | 90 |
|
91 | | -# Minimal `SparseArrayInterface` interface |
92 | | -SparseArrayInterface.sparse_storage(a::DiagonalArray) = a.diag |
| 91 | +# Minimal `SparseArraysBase` interface |
| 92 | +SparseArraysBase.sparse_storage(a::DiagonalArray) = a.diag |
93 | 93 |
|
94 | | -# `SparseArrayInterface` |
| 94 | +# `SparseArraysBase` |
95 | 95 | # Defines similar when the output can't be `DiagonalArray`, |
96 | 96 | # such as in `reshape`. |
97 | 97 | # TODO: Put into `DiagonalArraysSparseArrayDOKsExt`? |
98 | 98 | # TODO: Special case 2D to output `SparseMatrixCSC`? |
99 | | -function SparseArrayInterface.sparse_similar( |
| 99 | +function SparseArraysBase.sparse_similar( |
100 | 100 | a::DiagonalArray, elt::Type, dims::Tuple{Vararg{Int}} |
101 | 101 | ) |
102 | 102 | return SparseArrayDOK{elt}(undef, dims, getindex_zero_function(a)) |
103 | 103 | end |
104 | 104 |
|
105 | | -function SparseArrayInterface.getindex_zero_function(a::DiagonalArray) |
| 105 | +function SparseArraysBase.getindex_zero_function(a::DiagonalArray) |
106 | 106 | return a.zero |
107 | 107 | end |
0 commit comments