From eb4cfb457dcb293577f66fd4237769708820c70c Mon Sep 17 00:00:00 2001 From: VinceNeede Date: Fri, 18 Apr 2025 23:45:15 +0200 Subject: [PATCH 1/3] Explicit NDTensors for Tensor constructor --- src/itensor.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/itensor.jl b/src/itensor.jl index f283234d83..8cf26b2550 100644 --- a/src/itensor.jl +++ b/src/itensor.jl @@ -148,8 +148,8 @@ ITensor(::AliasStyle, args...; kwargs...)::ITensor = error( Create a `Tensor` that stores a copy of the storage and indices of the input `ITensor`. """ -Tensor(T::ITensor)::Tensor = Tensor(NeverAlias(), T) -Tensor(as::NeverAlias, T::ITensor)::Tensor = Tensor(AllowAlias(), copy(T)) +NDTensors.Tensor(T::ITensor)::Tensor = Tensor(NeverAlias(), T) +NDTensors.Tensor(as::NeverAlias, T::ITensor)::Tensor = Tensor(AllowAlias(), copy(T)) """ tensor(::ITensor) @@ -157,7 +157,7 @@ Tensor(as::NeverAlias, T::ITensor)::Tensor = Tensor(AllowAlias(), copy(T)) Convert the `ITensor` to a `Tensor` that shares the same storage and indices as the `ITensor`. """ -Tensor(::AllowAlias, A::ITensor) = A.tensor +NDTensors.Tensor(::AllowAlias, A::ITensor) = A.tensor """ ITensor([::Type{ElT} = Float64, ]inds) From a8ef3d1a77591a45423f6011d43899a5cb75e7b8 Mon Sep 17 00:00:00 2001 From: VinceNeede Date: Fri, 18 Apr 2025 23:47:21 +0200 Subject: [PATCH 2/3] Fix threading test to use BLAS.get_num_threads() instead of Compat.get_num_threads() (deprecated) --- test/threading/test_threading.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/threading/test_threading.jl b/test/threading/test_threading.jl index 3a40c0f7a9..5b7988d549 100644 --- a/test/threading/test_threading.jl +++ b/test/threading/test_threading.jl @@ -1,4 +1,3 @@ -using Compat using ITensors using Test using LinearAlgebra @@ -8,7 +7,7 @@ if isone(Threads.nthreads()) end @testset "Threading" begin - blas_num_threads = Compat.get_num_threads() + blas_num_threads = BLAS.get_num_threads() strided_num_threads = ITensors.NDTensors.Strided.get_num_threads() BLAS.set_num_threads(1) From 1d9be6501648f76780d66841f74c10fc6622e76f Mon Sep 17 00:00:00 2001 From: Matt Fishman Date: Sun, 20 Apr 2025 14:13:02 -0400 Subject: [PATCH 3/3] Bump to v0.9.5 [no ci] --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 60bceb84d4..94c17d7905 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ITensors" uuid = "9136182c-28ba-11e9-034c-db9fb085ebd5" authors = ["Matthew Fishman ", "Miles Stoudenmire "] -version = "0.9.4" +version = "0.9.5" [deps] Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"