diff --git a/Project.toml b/Project.toml index 3d0f630..23b1034 100644 --- a/Project.toml +++ b/Project.toml @@ -1,19 +1,15 @@ name = "DiagonalArrays" uuid = "74fd4be6-21e2-4f6f-823a-4360d37c7a77" authors = ["ITensor developers and contributors"] -version = "0.2.0" +version = "0.2.1" [deps] ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a" -BroadcastMapConversion = "4a4adec5-520f-4750-bb37-d5e66b4ddeb2" -Derive = "a07dfc7f-7d04-4eb5-84cc-a97f051f655a" +DerivableInterfaces = "6c5e35bf-e59e-4898-b73c-732dcc4ba65f" SparseArraysBase = "0d5efcca-f356-4864-8770-e1ed8d78f208" -TypeParameterAccessors = "7e5a90cf-f82e-492e-a09b-e3e26432c138" [compat] ArrayLayouts = "1.10.4" -BroadcastMapConversion = "0.1" -Derive = "0.3.6" +DerivableInterfaces = "0.3.7" SparseArraysBase = "0.2.1" -TypeParameterAccessors = "0.2" julia = "1.10" diff --git a/docs/Project.toml b/docs/Project.toml index 35294a6..53066a9 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -1,8 +1,4 @@ [deps] -BroadcastMapConversion = "4a4adec5-520f-4750-bb37-d5e66b4ddeb2" DiagonalArrays = "74fd4be6-21e2-4f6f-823a-4360d37c7a77" Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306" -NestedPermutedDimsArrays = "2c2a8ec4-3cfc-4276-aa3e-1307b4294e58" -SparseArraysBase = "0d5efcca-f356-4864-8770-e1ed8d78f208" -TypeParameterAccessors = "7e5a90cf-f82e-492e-a09b-e3e26432c138" diff --git a/src/abstractdiagonalarray/diagonalarraydiaginterface.jl b/src/abstractdiagonalarray/diagonalarraydiaginterface.jl index 942ea16..126d702 100644 --- a/src/abstractdiagonalarray/diagonalarraydiaginterface.jl +++ b/src/abstractdiagonalarray/diagonalarraydiaginterface.jl @@ -2,7 +2,7 @@ diagview(a::AbstractDiagonalArray) = throw(MethodError(diagview, Tuple{typeof(a)})) -using Derive: Derive, @interface +using DerivableInterfaces: DerivableInterfaces, @interface using SparseArraysBase: SparseArraysBase, AbstractSparseArrayInterface, AbstractSparseArrayStyle ## , StorageIndex, StorageIndices @@ -10,12 +10,16 @@ abstract type AbstractDiagonalArrayInterface <: AbstractSparseArrayInterface end struct DiagonalArrayInterface <: AbstractDiagonalArrayInterface end -Derive.arraytype(::AbstractDiagonalArrayInterface, elt::Type) = DiagonalArray{elt} -Derive.interface(::Type{<:AbstractDiagonalArray}) = DiagonalArrayInterface() +function DerivableInterfaces.arraytype(::AbstractDiagonalArrayInterface, elt::Type) + return DiagonalArray{elt} +end +DerivableInterfaces.interface(::Type{<:AbstractDiagonalArray}) = DiagonalArrayInterface() abstract type AbstractDiagonalArrayStyle{N} <: AbstractSparseArrayStyle{N} end -Derive.interface(::Type{<:AbstractDiagonalArrayStyle}) = DiagonalArrayInterface() +function DerivableInterfaces.interface(::Type{<:AbstractDiagonalArrayStyle}) + return DiagonalArrayInterface() +end struct DiagonalArrayStyle{N} <: AbstractDiagonalArrayStyle{N} end