@@ -10,7 +10,7 @@ macro check_args(K, param, cond, desc=string(cond))
10
10
end
11
11
12
12
13
- abstract type VecOfVecs{T, TX <: AbstractMatrix{T} , S} <: AbstractVector{S} end
13
+ # abstract type VecOfVecs{T, TX <: AbstractMatrix{T}, S} <: AbstractVector{S} end
14
14
15
15
function vec_of_vecs (X:: AbstractMatrix ; obsdim = 1 )
16
16
@assert obsdim ∈ (1 , 2 ) " obsdim should be 1 or 2"
26
26
27
27
A lightweight box for an `AbstractMatrix` to make it behave like a vector of vectors.
28
28
"""
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}
30
30
X:: TX
31
31
function ColVecs (X:: TX ) where {T, TX<: AbstractMatrix{T} }
32
32
S = typeof (view (X, :, 1 ))
@@ -43,7 +43,7 @@ Base.getindex(D::ColVecs, i) = ColVecs(view(D.X, :, i))
43
43
44
44
A lightweight box for an `AbstractMatrix` to make it behave like a vector of vectors.
45
45
"""
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}
47
47
X:: TX
48
48
function RowVecs (X:: TX ) where {T, TX<: AbstractMatrix{T} }
49
49
S = typeof (view (X, 1 , :))
0 commit comments