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
6
6
7
7
using DerivableInterfaces: DerivableInterfaces
8
8
function DerivableInterfaces. interface (:: Type{A} ) where {A<: AnyAbstractSparseArray }
9
- return SparseArrayInterface {ndims(A)} ()
9
+ return SparseArrayInterface ()
10
10
end
11
11
12
12
using DerivableInterfaces: @derive
Original file line number Diff line number Diff line change 25
25
# Fallbacks for dense/non-sparse arrays.
26
26
27
27
"""
28
- AbstractSparseArrayInterface{N} <: AbstractArrayInterface{N}
28
+ AbstractSparseArrayInterface <: AbstractArrayInterface
29
29
30
30
Abstract supertype for any interface associated with sparse array types.
31
31
"""
32
- abstract type AbstractSparseArrayInterface{N} <: AbstractArrayInterface{N} end
32
+ abstract type AbstractSparseArrayInterface <: AbstractArrayInterface end
33
33
34
34
"""
35
- SparseArrayInterface{N} <: AbstractSparseArrayInterface{N}
35
+ SparseArrayInterface <: AbstractSparseArrayInterface
36
36
37
37
Interface for array operations that are centered around sparse storage types, typically assuming
38
38
fast `O(1)` random access/insertion, but slower sequential access.
39
39
"""
40
- struct SparseArrayInterface{N} <: AbstractSparseArrayInterface{N} end
40
+ struct SparseArrayInterface <: AbstractSparseArrayInterface end
41
41
42
42
# by default, this interface is stronger than other interfaces (is this fair?)
43
43
Original file line number Diff line number Diff line change 164
164
165
165
using LinearAlgebra: LinearAlgebra, Diagonal
166
166
167
- DerivableInterfaces. interface (:: Diagonal ) = SparseArrayInterface {2} ()
167
+ DerivableInterfaces. interface (:: Diagonal ) = SparseArrayInterface ()
168
168
169
169
@interface :: AbstractSparseArrayInterface storedvalues (D:: Diagonal ) = LinearAlgebra. diag (D)
170
170
You can’t perform that action at this time.
0 commit comments