@@ -190,6 +190,7 @@ const SparseMatrixCSCColumnSubset{Tv,Ti} =
190190 SubArray{Tv,2 ,<: AbstractSparseMatrixCSC{Tv,Ti} ,
191191 Tuple{Base. Slice{Base. OneTo{Int}},I}} where {I<: AbstractVector{<:Integer} }
192192const SparseMatrixCSCUnion2{Tv,Ti} = Union{AbstractSparseMatrixCSC{Tv,Ti}, SparseMatrixCSCColumnSubset{Tv,Ti}}
193+ const SparseMatrixCSCUnion3{Tv,Ti} = Union{AbstractSparseMatrixCSC{Tv,Ti}, SparseMatrixCSCColumnSubset{Tv,Ti}, SparseMatrixCSCView{Tv, Ti}}
193194
194195getcolptr (S:: SorF ) = getfield (S, :colptr )
195196getcolptr (S:: SparseMatrixCSCView ) = view (getcolptr (parent (S)), first (S. indices[2 ]): (last (S. indices[2 ]) + 1 ))
@@ -202,12 +203,13 @@ nzvalview(S::AbstractSparseMatrixCSC) = view(nonzeros(S), 1:nnz(S))
202203
203204const SparseMatrixCSRView{Tv,Ti} =
204205 SubArray{Tv,2 ,<: AbstractSparseMatrixCSR{Tv,Ti} ,
205- Tuple{Base. Slice{Base. OneTo{Int}},I }} where {I<: AbstractUnitRange{<:Integer} }
206+ Tuple{I, Base. Slice{Base. OneTo{Int}}}} where {I<: AbstractUnitRange{<:Integer} }
206207const SparseMatrixCSRRowSubset{Tv,Ti} =
207208 SubArray{Tv,2 ,<: AbstractSparseMatrixCSR{Tv,Ti} ,
208209 Tuple{I,Base. Slice{Base. OneTo{Int}}}} where {I<: AbstractVector{<:Integer} }
209210const SparseMatrixCSRUnion{Tv,Ti} = Union{AbstractSparseMatrixCSR{Tv,Ti}, SparseMatrixCSRView{Tv,Ti}}
210211const SparseMatrixCSRUnion2{Tv,Ti} = Union{AbstractSparseMatrixCSR{Tv,Ti}, SparseMatrixCSRRowSubset{Tv,Ti}}
212+ const SparseMatrixCSRUnion3{Tv,Ti} = Union{AbstractSparseMatrixCSR{Tv,Ti}, SparseMatrixCSRRowSubset{Tv,Ti}, SparseMatrixCSRView{Tv, Ti}}
211213
212214getrowptr (S:: AbstractSparseMatrixCSR ) = getfield (S, :rowptr )
213215getrowptr (S:: SparseMatrixCSRView ) = view (getrowptr (parent (S)), first (S. indices[2 ]): (last (S. indices[2 ]) + 1 ))
0 commit comments