Skip to content

Commit c2759b7

Browse files
lkdvosJutho
andauthored
Apply suggestions from code review
Co-authored-by: Jutho <[email protected]>
1 parent ac01f19 commit c2759b7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/tensors/abstracttensor.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ Return the type of vector that stores the data of a tensor.
4949
# the default implementation tries to leverarge inference and `similar`
5050
@doc """
5151
similarstoragetype(t, [T = scalartype(t)]) -> Type{<:DenseVector{T}}
52-
similarstoragetype(TT, [T = scalartype(t)]) -> Type{<:DenseVector{T}}
53-
similarstoragetype(A, [T = scalartype(t)]) -> Type{<:DenseVector{T}}
54-
similarstoragetype(D, [T = scalartype(t)]) -> Type{<:DenseVector{T}}
52+
similarstoragetype(TT, [T = scalartype(TT)]) -> Type{<:DenseVector{T}}
53+
similarstoragetype(A, [T = scalartype(A)]) -> Type{<:DenseVector{T}}
54+
similarstoragetype(D, [T = scalartype(D)]) -> Type{<:DenseVector{T}}
5555
5656
similarstoragetype(T::Type{<:Number}) -> Vector{T}
5757

src/tensors/tensor.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ TensorMap{T}(data::DenseVector{T}, codomain::TensorSpace, domain::TensorSpace) w
125125
TensorMap{T}(data, codomain domain)
126126

127127
"""
128-
TensorMapWithStorage{T, A}(data::DenseVector{T}, codomain, domain) where {T, A}
129-
TensorMapWithStorage{T, A}(data::DenseVector{T}, codomain ← domain) where {T, A}
130-
TensorMapWithStorage{T, A}(data::DenseVector{T}, domain → codomain) where {T, A}
128+
TensorMapWithStorage{T, A}(data::A, codomain, domain) where {T, A<:DenseVector{T}}
129+
TensorMapWithStorage{T, A}(data::A, codomain ← domain) where {T, A<:DenseVector{T}}
130+
TensorMapWithStorage{T, A}(data::A, domain → codomain) where {T, A<:DenseVector{T}}
131131
132132
Construct a `TensorMap` from the given raw data.
133133
This constructor takes ownership of the provided vector, and will not make an independent copy.

0 commit comments

Comments
 (0)