Skip to content

Commit 8952e18

Browse files
theogfdevmotion
andauthored
Update src/utils.jl
Co-Authored-By: David Widmann <[email protected]>
1 parent aa27cd6 commit 8952e18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Base.getindex(D::ColVecs, n::CartesianIndex{1}) = getindex(D, n[1])
2828
Base.getindex(D::ColVecs, n) = ColVecs(D.X[:, n])
2929
Base.view(D::ColVecs, n::Int) = view(D.X, :, n)
3030
Base.view(D::ColVecs, n) = ColVecs(view(D.X, :, n))
31-
Base.eltype(D::ColVecs{T}) where T = Vector{T}
31+
Base.eltype(::Type{<:ColVecs{T}}) where T = Vector{T}
3232
Base.zero(D::ColVecs) = ColVecs(zero(D.X))
3333
Base.iterate(D::ColVecs) = (view(D.X, :, 1), 2)
3434
Base.iterate(D::ColVecs, state) = state > length(D) ? nothing : (view(D.X, :, state), state + 1)

0 commit comments

Comments
 (0)