Skip to content

Commit 59f4b09

Browse files
authored
Generalize blocked tuple getindex (#122)
1 parent fc88db7 commit 59f4b09

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TensorAlgebra"
22
uuid = "68bd88dc-f39d-4e12-b2ca-f046b68fcc6a"
33
authors = ["ITensor developers <support@itensor.org> and contributors"]
4-
version = "0.7.0"
4+
version = "0.7.1"
55

66
[deps]
77
EllipsisNotation = "da5c29d0-fa7d-589e-88eb-ea29b0a81949"

ext/TensorAlgebraBlockArraysExt/blockedtuple.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ TA.BlockRange(I::BA.BlockRange) = TA.BlockRange(I.indices)
1313
TA.BlockIndexRange(I::BA.BlockIndexRange) = TA.BlockIndexRange(TA.Block(I.block), I.indices)
1414
Base.:(==)(I::BA.Block, J::TA.Block) = I.n == J.n
1515
Base.:(==)(I::TA.Block, J::BA.Block) = I.n == J.n
16-
Base.getindex(bt::TA.BlockedTuple, I::BA.Block) = bt[TA.Block(I)]
16+
Base.getindex(bt::TA.AbstractBlockTuple, I::BA.Block) = bt[TA.Block(I)]
1717
Base.getindex(bt::TA.AbstractBlockTuple, I::BA.BlockIndexRange) = bt[TA.BlockIndexRange(I)]
1818
Base.getindex(bt::TA.AbstractBlockTuple, I::BA.BlockRange{1}) = bt[TA.BlockRange(I)]
1919

0 commit comments

Comments
 (0)