Skip to content

Commit 49486ba

Browse files
authored
Upgrade to TensorAlgebra.jl v0.7 (#208)
1 parent afc7277 commit 49486ba

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "BlockSparseArrays"
22
uuid = "2c9a651f-6452-4ace-a6ac-809f4280fbb4"
33
authors = ["ITensor developers <support@itensor.org> and contributors"]
4-
version = "0.10.18"
4+
version = "0.10.19"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
@@ -24,7 +24,7 @@ TypeParameterAccessors = "7e5a90cf-f82e-492e-a09b-e3e26432c138"
2424
TensorAlgebra = "68bd88dc-f39d-4e12-b2ca-f046b68fcc6a"
2525

2626
[extensions]
27-
BlockSparseArraysTensorAlgebraExt = "TensorAlgebra"
27+
BlockSparseArraysTensorAlgebraExt = ["TensorAlgebra", "BlockArrays", "SparseArraysBase"]
2828

2929
[compat]
3030
Adapt = "4.1.1"
@@ -41,7 +41,7 @@ MapBroadcast = "0.1.5"
4141
MatrixAlgebraKit = "0.6"
4242
SparseArraysBase = "0.9"
4343
SplitApplyCombine = "1.2.3"
44-
TensorAlgebra = "0.6.2"
44+
TensorAlgebra = "0.6.2, 0.7"
4545
TypeParameterAccessors = "0.4.1"
4646
julia = "1.10"
4747

ext/BlockSparseArraysTensorAlgebraExt/BlockSparseArraysTensorAlgebraExt.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
module BlockSparseArraysTensorAlgebraExt
22

3-
using BlockArrays: Block, blocklength, blocks, eachblockaxes1
3+
using BlockArrays: AbstractBlockArray, Block, blocklength, blocks, eachblockaxes1
44
using BlockSparseArrays: AbstractBlockSparseArray, AbstractBlockSparseMatrix,
55
BlockUnitRange, blockrange, blocksparse
66
using SparseArraysBase: eachstoredindex
7-
using TensorAlgebra: TensorAlgebra, BlockReshapeFusion, BlockedTuple, matricize,
8-
matricize_axes, tensor_product_axis, unmatricize
7+
using TensorAlgebra: TensorAlgebra, BlockedTuple, FusionStyle, matricize, matricize_axes,
8+
tensor_product_axis, unmatricize
9+
10+
const BlockReshapeFusion = typeof(FusionStyle(AbstractBlockArray))
911

1012
function TensorAlgebra.tensor_product_axis(
1113
style::BlockReshapeFusion, side::Val{:codomain}, r1::BlockUnitRange, r2::BlockUnitRange

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ SafeTestsets = "0.1"
4040
SparseArraysBase = "0.9"
4141
StableRNGs = "1"
4242
Suppressor = "0.2"
43-
TensorAlgebra = "0.6"
43+
TensorAlgebra = "0.6, 0.7"
4444
Test = "1.10"
4545
TestExtras = "0.3"
4646
TypeParameterAccessors = "0.4"

0 commit comments

Comments
 (0)