Skip to content

Commit beeefe4

Browse files
committed
extra comments in docstrings
1 parent e40e405 commit beeefe4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tensors/tensor.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ TensorWithStorage{T, A}(::UndefInitializer, V::TensorSpace) where {T, A} = Tenso
125125
TensorMap{T}(data::DenseVector{T}, domain → codomain)
126126
127127
Construct a `TensorMap` from the given raw data.
128+
This constructor takes ownership of the provided vector, and will not make an independent copy.
128129
"""
129130
TensorMap{T}(data::DenseVector{T}, V::TensorMapSpace) where {T} =
130131
TensorMapWithStorage{T, typeof(data)}(data, V)
@@ -137,6 +138,7 @@ TensorMap{T}(data::DenseVector{T}, codomain::TensorSpace, domain::TensorSpace) w
137138
TensorMapWithStorage{T, A}(data::DenseVector{T}, domain → codomain) where {T, A}
138139
139140
Construct a `TensorMap` from the given raw data.
141+
This constructor takes ownership of the provided vector, and will not make an independent copy.
140142
"""
141143
function TensorMapWithStorage{T, A}(data::A, V::TensorMapSpace) where {T, A}
142144
length(data) == dim(V) || throw(DimensionMismatch("invalid length of data"))

0 commit comments

Comments
 (0)