Skip to content

Commit 8d3a294

Browse files
authored
adapt to TensorAlgebra.permmortar (#43)
1 parent c872256 commit 8d3a294

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ LinearAlgebra = "1.10"
3636
MapBroadcast = "0.1.6"
3737
Random = "1.10"
3838
SimpleTraits = "0.9.4"
39-
TensorAlgebra = "0.1"
39+
TensorAlgebra = "0.2"
4040
TypeParameterAccessors = "0.2, 0.3"
4141
julia = "1.10"

src/tensoralgebra.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using LinearAlgebra: LinearAlgebra
22
using TensorAlgebra:
3-
TensorAlgebra, blockedperm, contract, contract!, fusedims, qr, splitdims, svd
3+
TensorAlgebra, blockedperm, contract, contract!, fusedims, permmortar, qr, splitdims, svd
44
using TensorAlgebra.BaseExtensions: BaseExtensions
55

66
function TensorAlgebra.contract!(
@@ -72,7 +72,7 @@ function TensorAlgebra.blockedperm(na::AbstractNamedDimsArray, nameddim_blocks::
7272
perms = map(dimname_blocks) do dimname_block
7373
return BaseExtensions.indexin(dimname_block, nameddimsindices_a)
7474
end
75-
return blockedperm(perms...)
75+
return permmortar(perms)
7676
end
7777

7878
# i, j, k, l = named.((2, 2, 2, 2), ("i", "j", "k", "l"))

0 commit comments

Comments
 (0)