Skip to content

Commit adc7fbe

Browse files
committed
Update to TensorAlgebra 0.4
1 parent da61225 commit adc7fbe

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "FusionTensors"
22
uuid = "e16ca583-1f51-4df0-8e12-57d32947d33e"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.5.7"
4+
version = "0.5.8"
55

66
[deps]
77
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
@@ -21,14 +21,14 @@ WignerSymbols = "9f57e263-0b3d-5e2e-b1be-24f2bb48858b"
2121
[compat]
2222
Accessors = "0.1.42"
2323
BlockArrays = "1.7"
24-
BlockSparseArrays = "0.8, 0.9"
24+
BlockSparseArrays = "0.10"
2525
GradedArrays = "0.4.14"
2626
HalfIntegers = "1.6"
2727
LRUCache = "1.6"
2828
LinearAlgebra = "1.10"
2929
Random = "1.10"
3030
Strided = "2.3"
31-
TensorAlgebra = "0.3.8"
31+
TensorAlgebra = "0.4"
3232
TensorProducts = "0.1.7"
3333
TypeParameterAccessors = "0.4"
3434
WignerSymbols = "2.0.0"

src/fusiontensor/tensor_algebra_interface.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ function TensorAlgebra.allocate_output(
1515
biperm1::BlockedPermutation{2},
1616
a2::FusionTensor,
1717
biperm2::BlockedPermutation{2},
18-
α::Number=true,
1918
)
2019
axes_dest = (
2120
map(i -> axes(a1)[i], first(blocks(biperm1))),
2221
map(i -> axes(a2)[i], last(blocks(biperm2))),
2322
)
24-
return similar(a1, promote_type(eltype(a1), eltype(a2), typeof(α)), axes_dest)
23+
return similar(a1, promote_type(eltype(a1), eltype(a2)), axes_dest)
2524
end
2625

2726
# TBD do really I need to define these as I cannot use them in contract! and has to redefine it?
@@ -32,7 +31,7 @@ end
3231
# I cannot use contract! from TensorAlgebra/src/contract/contract_matricize/contract.jl
3332
# as it calls _mul!, which I should not overload.
3433
# TBD define fallback _mul!(::AbstractArray, ::AbstractArray, ::AbstractArray) in TensorAlgebra?
35-
function TensorAlgebra.contract!(
34+
function TensorAlgebra.contractadd!(
3635
::Matricize,
3736
a_dest::FusionTensor,
3837
::BlockedPermutation{2},

test/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1515
[compat]
1616
Aqua = "0.8.11"
1717
BlockArrays = "1.6"
18-
BlockSparseArrays = "0.8, 0.9"
18+
BlockSparseArrays = "0.10"
1919
FusionTensors = "0.5"
2020
GradedArrays = "0.4"
2121
LinearAlgebra = "1.10.0"
2222
Random = "1.10"
2323
SafeTestsets = "0.1.0"
2424
Suppressor = "0.2.8"
25-
TensorAlgebra = "0.3"
25+
TensorAlgebra = "0.4"
2626
TensorProducts = "0.1"
2727
Test = "1.10.0"

0 commit comments

Comments
 (0)