Skip to content

Commit f88bef6

Browse files
committed
Removed VecOfVecs
1 parent e0c0675 commit f88bef6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ macro check_args(K, param, cond, desc=string(cond))
1010
end
1111

1212

13-
abstract type VecOfVecs{T, TX <: AbstractMatrix{T}, S} <: AbstractVector{S} end
13+
# abstract type VecOfVecs{T, TX <: AbstractMatrix{T}, S} <: AbstractVector{S} end
1414

1515
function vec_of_vecs(X::AbstractMatrix; obsdim = 1)
1616
@assert obsdim (1, 2) "obsdim should be 1 or 2"
@@ -26,7 +26,7 @@ end
2626
2727
A lightweight box for an `AbstractMatrix` to make it behave like a vector of vectors.
2828
"""
29-
struct ColVecs{T, TX<:AbstractMatrix{T}, S} <: VecOfVecs{T, TX, S}
29+
struct ColVecs{T, TX<:AbstractMatrix{T}, S} <: AbstractVector{S} # VecOfVecs{T, TX, S}
3030
X::TX
3131
function ColVecs(X::TX) where {T, TX<:AbstractMatrix{T}}
3232
S = typeof(view(X, :, 1))
@@ -43,7 +43,7 @@ Base.getindex(D::ColVecs, i) = ColVecs(view(D.X, :, i))
4343
4444
A lightweight box for an `AbstractMatrix` to make it behave like a vector of vectors.
4545
"""
46-
struct RowVecs{T, TX<:AbstractMatrix{T}, S} <: VecOfVecs{T, TX, S}
46+
struct RowVecs{T, TX<:AbstractMatrix{T}, S} <: AbstractVector{S} # VecOfVecs{T, TX, S}
4747
X::TX
4848
function RowVecs(X::TX) where {T, TX<:AbstractMatrix{T}}
4949
S = typeof(view(X, 1, :))

0 commit comments

Comments
 (0)