Skip to content

Commit e5721c2

Browse files
authored
Use MapBroadcast.jl and DerivableInterfaces.jl (#15)
1 parent ebcc225 commit e5721c2

File tree

5 files changed

+10
-19
lines changed

5 files changed

+10
-19
lines changed

Project.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name = "NamedDimsArrays"
22
uuid = "60cbd0c0-df58-4cb7-918c-6f5607b73fde"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.3.3"
4+
version = "0.3.4"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
88
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
9-
BroadcastMapConversion = "4a4adec5-520f-4750-bb37-d5e66b4ddeb2"
10-
Derive = "a07dfc7f-7d04-4eb5-84cc-a97f051f655a"
9+
DerivableInterfaces = "6c5e35bf-e59e-4898-b73c-732dcc4ba65f"
1110
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
11+
MapBroadcast = "ebd9b9da-f48d-417c-9660-449667d60261"
1212
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1313
SimpleTraits = "699a6c99-e7fa-54fc-8d76-47d257e15c1d"
1414
TensorAlgebra = "68bd88dc-f39d-4e12-b2ca-f046b68fcc6a"
@@ -24,9 +24,9 @@ NamedDimsArraysBlockArraysExt = "BlockArrays"
2424
Adapt = "4.1.1"
2525
ArrayLayouts = "1.11.0"
2626
BlockArrays = "1.3.0"
27-
BroadcastMapConversion = "0.1.2"
28-
Derive = "0.3.6"
27+
DerivableInterfaces = "0.3.7"
2928
LinearAlgebra = "1.10"
29+
MapBroadcast = "0.1.5"
3030
Random = "1.10"
3131
SimpleTraits = "0.9.4"
3232
TensorAlgebra = "0.1"

docs/Project.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
[deps]
2-
BroadcastMapConversion = "4a4adec5-520f-4750-bb37-d5e66b4ddeb2"
32
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
43
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
54
NamedDimsArrays = "60cbd0c0-df58-4cb7-918c-6f5607b73fde"
6-
NestedPermutedDimsArrays = "2c2a8ec4-3cfc-4276-aa3e-1307b4294e58"
7-
SparseArraysBase = "0d5efcca-f356-4864-8770-e1ed8d78f208"
85
TensorAlgebra = "68bd88dc-f39d-4e12-b2ca-f046b68fcc6a"
9-
TypeParameterAccessors = "7e5a90cf-f82e-492e-a09b-e3e26432c138"
6+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

examples/Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
[deps]
2-
BroadcastMapConversion = "4a4adec5-520f-4750-bb37-d5e66b4ddeb2"
32
NamedDimsArrays = "60cbd0c0-df58-4cb7-918c-6f5607b73fde"
4-
SparseArraysBase = "0d5efcca-f356-4864-8770-e1ed8d78f208"
53
TensorAlgebra = "68bd88dc-f39d-4e12-b2ca-f046b68fcc6a"
6-
TypeParameterAccessors = "7e5a90cf-f82e-492e-a09b-e3e26432c138"
4+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

src/abstractnameddimsarray.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Derive: Derive, @derive, AbstractArrayInterface
1+
using DerivableInterfaces: DerivableInterfaces, @derive, AbstractArrayInterface
22
using TypeParameterAccessors: unspecify_type_parameters
33

44
# Some of the interface is inspired by:
@@ -16,7 +16,7 @@ abstract type AbstractNamedDimsArray{T,N} <: AbstractArray{T,N} end
1616
const AbstractNamedDimsVector{T} = AbstractNamedDimsArray{T,1}
1717
const AbstractNamedDimsMatrix{T} = AbstractNamedDimsArray{T,2}
1818

19-
Derive.interface(::Type{<:AbstractNamedDimsArray}) = NamedDimsArrayInterface()
19+
DerivableInterfaces.interface(::Type{<:AbstractNamedDimsArray}) = NamedDimsArrayInterface()
2020

2121
# Output the dimension names.
2222
nameddimsindices(a::AbstractArray) = throw(MethodError(nameddimsindices, Tuple{typeof(a)}))
@@ -711,7 +711,7 @@ using Base.Broadcast:
711711
broadcasted,
712712
check_broadcast_shape,
713713
combine_axes
714-
using BroadcastMapConversion: Mapped, mapped
714+
using MapBroadcast: Mapped, mapped
715715

716716
abstract type AbstractNamedDimsArrayStyle{N} <: AbstractArrayStyle{N} end
717717

test/Project.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@ Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
33
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
44
BlockArrays = "8e7c35d0-a365-5155-bbbb-fb81a777f24e"
55
BlockSparseArrays = "2c9a651f-6452-4ace-a6ac-809f4280fbb4"
6-
BroadcastMapConversion = "4a4adec5-520f-4750-bb37-d5e66b4ddeb2"
76
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
87
NamedDimsArrays = "60cbd0c0-df58-4cb7-918c-6f5607b73fde"
9-
NestedPermutedDimsArrays = "2c2a8ec4-3cfc-4276-aa3e-1307b4294e58"
108
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
11-
SparseArraysBase = "0d5efcca-f356-4864-8770-e1ed8d78f208"
129
Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"
1310
TensorAlgebra = "68bd88dc-f39d-4e12-b2ca-f046b68fcc6a"
1411
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
15-
TypeParameterAccessors = "7e5a90cf-f82e-492e-a09b-e3e26432c138"
1612

1713
[compat]
1814
Aqua = "0.8.9"

0 commit comments

Comments
 (0)