Skip to content

Commit 6e31b44

Browse files
committed
Improved description RowVecs and ColVecs
1 parent 235cd57 commit 6e31b44

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/utils.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ end
2424
"""
2525
ColVecs(X::AbstractMatrix)
2626
27-
A lightweight box for an `AbstractMatrix` to make it behave like a vector of vectors.
27+
A lightweight wrapper for an `AbstractMatrix` to make it behave like a vector of vectors.
28+
Each vector represents a colum of the matrix
2829
"""
2930
struct ColVecs{T, TX<:AbstractMatrix{T}, S} <: AbstractVector{S} # VecOfVecs{T, TX, S}
3031
X::TX
@@ -41,7 +42,8 @@ Base.getindex(D::ColVecs, i) = ColVecs(view(D.X, :, i))
4142
"""
4243
RowVecs(X::AbstractMatrix)
4344
44-
A lightweight box for an `AbstractMatrix` to make it behave like a vector of vectors.
45+
A lightweight wrapper for an `AbstractMatrix` to make it behave like a vector of vectors.
46+
Each vector represents a colum of the matrix
4547
"""
4648
struct RowVecs{T, TX<:AbstractMatrix{T}, S} <: AbstractVector{S} # VecOfVecs{T, TX, S}
4749
X::TX

0 commit comments

Comments
 (0)