From f4f3c42289fd429bc996b2eacc6de62062048d95 Mon Sep 17 00:00:00 2001 From: Matthew Fishman Date: Wed, 1 Jul 2026 15:53:08 -0400 Subject: [PATCH] Support TensorAlgebra 0.15 Moves the compat bound to TensorAlgebra 0.15, which renames the perm-form `matricize(a, codomain_perm, domain_perm)` to `matricizeperm`. The extension's own `matricize`/`unmatricize` overloads target the kept split-axes and `Val`-block forms, so only the test's direct perm-form call needs the rename. --- Project.toml | 4 ++-- test/Project.toml | 2 +- test/test_tensoralgebraext.jl | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index 617c54b..322dc7d 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "SparseArraysBase" uuid = "0d5efcca-f356-4864-8770-e1ed8d78f208" -version = "0.10.4" +version = "0.10.5" authors = ["ITensor developers and contributors"] [workspace] @@ -35,5 +35,5 @@ LinearAlgebra = "1.10" MapBroadcast = "0.1.5" Random = "1.10" SparseArrays = "1.10" -TensorAlgebra = "0.14" +TensorAlgebra = "0.15" julia = "1.10" diff --git a/test/Project.toml b/test/Project.toml index 252666c..7505d77 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -34,5 +34,5 @@ SparseArrays = "1.10" SparseArraysBase = "0.10" StableRNGs = "1.0.2" Suppressor = "0.2.8" -TensorAlgebra = "0.14" +TensorAlgebra = "0.15" Test = "<0.0.1, 1" diff --git a/test/test_tensoralgebraext.jl b/test/test_tensoralgebraext.jl index 59b5fcd..01543e5 100644 --- a/test/test_tensoralgebraext.jl +++ b/test/test_tensoralgebraext.jl @@ -1,7 +1,7 @@ using SparseArrays: SparseMatrixCSC, findnz, nnz using SparseArraysBase: SparseMatrixDOK, eachstoredindex, isstored, sparsezeros, storedlength -using TensorAlgebra: contract, matricize +using TensorAlgebra: contract, matricizeperm using Test: @test, @testset @testset "TensorAlgebraExt (eltype = $elt)" for elt in (Float32, ComplexF64) @@ -10,7 +10,7 @@ using Test: @test, @testset a[2, 1, 2] = 2 # matricize - m = matricize(a, (1, 3), (2,)) + m = matricizeperm(a, (1, 3), (2,)) @test m isa SparseMatrixCSC{elt} @test nnz(m) == 2 @test isstored(m, 1, 1)