Skip to content

Commit 9a432bf

Browse files
committed
Cleanup
1 parent c62ab0d commit 9a432bf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/sparsearraydok.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
# TODO: Define `AbstractSparseArray`, make this a subtype.
1+
# TODO: Rewrite to use `Dictionary`.
22
struct SparseArrayDOK{T,N} <: AbstractSparseArray{T,N}
33
storage::Dict{CartesianIndex{N},T}
44
size::NTuple{N,Int}
55
end
66

7-
const SparseMatrixDOK{T} = SparseArrayDOK{T,2}
8-
const SparseVectorDOK{T} = SparseArrayDOK{T,1}
9-
107
function SparseArrayDOK{T,N}(size::Vararg{Int,N}) where {T,N}
118
return SparseArrayDOK{T,N}(Dict{CartesianIndex{N},T}(), size)
129
end

0 commit comments

Comments
 (0)