Skip to content

Commit c04f934

Browse files
authored
[NDTensors] Bump to Dictionaries v0.4 (#1319)
1 parent 019a5f0 commit c04f934

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

NDTensors/Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "NDTensors"
22
uuid = "23ae76d9-e61a-49c4-8f12-3f1a16adf9cf"
33
authors = ["Matthew Fishman <[email protected]>"]
4-
version = "0.2.26"
4+
version = "0.2.27"
55

66
[deps]
77
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
@@ -51,7 +51,7 @@ Adapt = "3.7, 4"
5151
ArrayLayouts = "1.4"
5252
BlockArrays = "0.16"
5353
Compat = "4.9"
54-
Dictionaries = "0.3.5"
54+
Dictionaries = "0.4"
5555
EllipsisNotation = "1.8"
5656
FLoops = "0.2.1"
5757
FillArrays = "1"

NDTensors/src/blocksparse/blockoffsets.jl

-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# Work around https://github.com/andyferris/Dictionaries.jl/issues/98
2-
# Remove when fixed by https://github.com/andyferris/Dictionaries.jl/pull/101
3-
copy_keys_values(d::Dictionary) = Dictionary(copy(d.indices), copy(d.values))
4-
51
#
62
# BlockOffsets
73
#
@@ -14,8 +10,6 @@ const BlockOffsets{N} = Dictionary{Block{N},Int}
1410

1511
BlockOffset(block::Block{N}, offset::Int) where {N} = BlockOffset{N}(block, offset)
1612

17-
copy(blockoffsets::BlockOffsets) = copy_keys_values(blockoffsets)
18-
1913
ndims(::Blocks{N}) where {N} = N
2014
ndims(::BlockOffset{N}) where {N} = N
2115
ndims(::BlockOffsets{N}) where {N} = N

0 commit comments

Comments
 (0)