Skip to content

Commit eb4cfb4

Browse files
committed
Explicit NDTensors for Tensor constructor
1 parent 323b58f commit eb4cfb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)