Skip to content

Commit 7f11ea8

Browse files
committed
Fix tests
1 parent fc920a0 commit 7f11ea8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sparsearraydok.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ end
6464

6565
using DerivableInterfaces: DerivableInterfaces
6666
# This defines the destination type of various operations in DerivableInterfaces.jl.
67-
DerivableInterfaces.arraytype(::AbstractSparseArrayInterface, T::Type) = SparseArrayDOK{T}
67+
function Base.similar(::AbstractSparseArrayInterface, T::Type, ax::Tuple)
68+
return similar(SparseArrayDOK{T}, ax)
69+
end
6870

6971
using DerivableInterfaces: @array_aliases
7072
# Define `SparseMatrixDOK`, `AnySparseArrayDOK`, etc.

0 commit comments

Comments
 (0)