Skip to content

Commit 72b2573

Browse files
committed
bump TensorAlgebra version
1 parent 6c2204b commit 72b2573

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ MacroTools = "0.5.13"
4040
MapBroadcast = "0.1.5"
4141
SparseArraysBase = "0.5"
4242
SplitApplyCombine = "1.2.3"
43-
TensorAlgebra = "0.3.1"
43+
TensorAlgebra = "0.3.2"
4444
Test = "1.10"
4545
TypeParameterAccessors = "0.2.0, 0.3"
4646
julia = "1.10"

ext/BlockSparseArraysTensorAlgebraExt/BlockSparseArraysTensorAlgebraExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ using TensorAlgebra:
1111

1212
struct BlockReshapeFusion <: FusionStyle end
1313

14-
function TensorAlgebra.FusionStyle(::AbstractBlockSparseArray, ::ReshapeFusion)
14+
function TensorAlgebra.FusionStyle(::Type{<:AbstractBlockSparseArray})
1515
return BlockReshapeFusion()
1616
end
1717

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Random = "1"
3131
SafeTestsets = "0.1"
3232
SparseArraysBase = "0.5"
3333
Suppressor = "0.2"
34-
TensorAlgebra = "0.3.1"
34+
TensorAlgebra = "0.3.2"
3535
Test = "1"
3636
TestExtras = "0.3"
3737
TypeParameterAccessors = "0.3"

test/test_tensoralgebraext.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using BlockArrays: Block, BlockArray, BlockedArray, blockedrange, blocksize
1+
using BlockArrays: Block, BlockArray, blockedrange, blocksize
22
using BlockSparseArrays: BlockSparseArray
33
using Random: randn!
44
using TensorAlgebra: contract
@@ -18,7 +18,7 @@ end
1818
# test https://github.com/ITensor/BlockSparseArrays.jl/issues/57
1919
d = blockedrange([1, 1])
2020
a = BlockArray(ones((d, d, d, d)))
21-
@test contract(a, (1, -1, 2, -2), a, (2, -3, 1, -4)) isa Tuple
21+
@test contract((-1, -2, -3, -4), a, (1, -1, 2, -2), a, (2, -3, 1, -4)) isa BlockArray
2222
end
2323

2424
const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})

0 commit comments

Comments
 (0)