File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ using DerivableInterfaces: @array_aliases
66
77using DerivableInterfaces: DerivableInterfaces
88function DerivableInterfaces. interface (:: Type{A} ) where {A<: AnyAbstractSparseArray }
9- return SparseArrayInterface {ndims(A)} ()
9+ return SparseArrayInterface ()
1010end
1111
1212using DerivableInterfaces: @derive
Original file line number Diff line number Diff line change 2525# Fallbacks for dense/non-sparse arrays.
2626
2727"""
28- AbstractSparseArrayInterface{N} <: AbstractArrayInterface{N}
28+ AbstractSparseArrayInterface <: AbstractArrayInterface
2929
3030Abstract supertype for any interface associated with sparse array types.
3131"""
32- abstract type AbstractSparseArrayInterface{N} <: AbstractArrayInterface{N} end
32+ abstract type AbstractSparseArrayInterface <: AbstractArrayInterface end
3333
3434"""
35- SparseArrayInterface{N} <: AbstractSparseArrayInterface{N}
35+ SparseArrayInterface <: AbstractSparseArrayInterface
3636
3737Interface for array operations that are centered around sparse storage types, typically assuming
3838fast `O(1)` random access/insertion, but slower sequential access.
3939"""
40- struct SparseArrayInterface{N} <: AbstractSparseArrayInterface{N} end
40+ struct SparseArrayInterface <: AbstractSparseArrayInterface end
4141
4242# by default, this interface is stronger than other interfaces (is this fair?)
4343
Original file line number Diff line number Diff line change 164164
165165using LinearAlgebra: LinearAlgebra, Diagonal
166166
167- DerivableInterfaces. interface (:: Diagonal ) = SparseArrayInterface {2} ()
167+ DerivableInterfaces. interface (:: Diagonal ) = SparseArrayInterface ()
168168
169169@interface :: AbstractSparseArrayInterface storedvalues (D:: Diagonal ) = LinearAlgebra. diag (D)
170170
You can’t perform that action at this time.
0 commit comments