Skip to content

Commit afb9d87

Browse files
authored
Merge branch 'main' into NDTensors_avoid_threadid
2 parents 9b61d37 + 69433ec commit afb9d87

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ITensors"
22
uuid = "9136182c-28ba-11e9-034c-db9fb085ebd5"
33
authors = ["Matthew Fishman <[email protected]>", "Miles Stoudenmire <[email protected]>"]
4-
version = "0.9.4"
4+
version = "0.9.5"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

src/itensor.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,16 @@ ITensor(::AliasStyle, args...; kwargs...)::ITensor = error(
148148
Create a `Tensor` that stores a copy of the storage and
149149
indices of the input `ITensor`.
150150
"""
151-
Tensor(T::ITensor)::Tensor = Tensor(NeverAlias(), T)
152-
Tensor(as::NeverAlias, T::ITensor)::Tensor = Tensor(AllowAlias(), copy(T))
151+
NDTensors.Tensor(T::ITensor)::Tensor = Tensor(NeverAlias(), T)
152+
NDTensors.Tensor(as::NeverAlias, T::ITensor)::Tensor = Tensor(AllowAlias(), copy(T))
153153

154154
"""
155155
tensor(::ITensor)
156156
157157
Convert the `ITensor` to a `Tensor` that shares the same
158158
storage and indices as the `ITensor`.
159159
"""
160-
Tensor(::AllowAlias, A::ITensor) = A.tensor
160+
NDTensors.Tensor(::AllowAlias, A::ITensor) = A.tensor
161161

162162
"""
163163
ITensor([::Type{ElT} = Float64, ]inds)

0 commit comments

Comments
 (0)