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" 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) 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)