Skip to content

adapt to TensorAlgebra.permmortar #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "NamedDimsArrays"
uuid = "60cbd0c0-df58-4cb7-918c-6f5607b73fde"
authors = ["ITensor developers <[email protected]> and contributors"]
version = "0.5.1"
version = "0.5.2"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down Expand Up @@ -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"
4 changes: 2 additions & 2 deletions src/tensoralgebra.jl
Original file line number Diff line number Diff line change
@@ -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!(
Expand Down Expand Up @@ -72,7 +72,7 @@
perms = map(dimname_blocks) do dimname_block
return BaseExtensions.indexin(dimname_block, nameddimsindices_a)
end
return blockedperm(perms...)
return permmortar(perms)

Check warning on line 75 in src/tensoralgebra.jl

View check run for this annotation

Codecov / codecov/patch

src/tensoralgebra.jl#L75

Added line #L75 was not covered by tests
end

# i, j, k, l = named.((2, 2, 2, 2), ("i", "j", "k", "l"))
Expand Down
Loading