diff --git a/Project.toml b/Project.toml index 1d1d2a9..59f145a 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "NamedDimsArrays" uuid = "60cbd0c0-df58-4cb7-918c-6f5607b73fde" authors = ["ITensor developers and contributors"] -version = "0.5.1" +version = "0.5.2" [deps] Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e" @@ -36,6 +36,6 @@ LinearAlgebra = "1.10" MapBroadcast = "0.1.6" Random = "1.10" SimpleTraits = "0.9.4" -TensorAlgebra = "0.1" +TensorAlgebra = "0.2" TypeParameterAccessors = "0.2, 0.3" julia = "1.10" diff --git a/src/tensoralgebra.jl b/src/tensoralgebra.jl index 6a0fcd7..6594bad 100644 --- a/src/tensoralgebra.jl +++ b/src/tensoralgebra.jl @@ -1,6 +1,6 @@ using LinearAlgebra: LinearAlgebra using TensorAlgebra: - TensorAlgebra, blockedperm, contract, contract!, fusedims, qr, splitdims, svd + TensorAlgebra, blockedperm, contract, contract!, fusedims, permmortar, qr, splitdims, svd using TensorAlgebra.BaseExtensions: BaseExtensions function TensorAlgebra.contract!( @@ -72,7 +72,7 @@ function TensorAlgebra.blockedperm(na::AbstractNamedDimsArray, nameddim_blocks:: perms = map(dimname_blocks) do dimname_block return BaseExtensions.indexin(dimname_block, nameddimsindices_a) end - return blockedperm(perms...) + return permmortar(perms) end # i, j, k, l = named.((2, 2, 2, 2), ("i", "j", "k", "l"))