We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc920a0 commit 7f11ea8Copy full SHA for 7f11ea8
src/sparsearraydok.jl
@@ -64,7 +64,9 @@ end
64
65
using DerivableInterfaces: DerivableInterfaces
66
# This defines the destination type of various operations in DerivableInterfaces.jl.
67
-DerivableInterfaces.arraytype(::AbstractSparseArrayInterface, T::Type) = SparseArrayDOK{T}
+function Base.similar(::AbstractSparseArrayInterface, T::Type, ax::Tuple)
68
+ return similar(SparseArrayDOK{T}, ax)
69
+end
70
71
using DerivableInterfaces: @array_aliases
72
# Define `SparseMatrixDOK`, `AnySparseArrayDOK`, etc.
0 commit comments