@@ -492,30 +492,7 @@ resize!(c::BlockBroadcastVector{T,typeof(vcat)}, N::Block{1}) where T = BlockBro
492492# BlockVec
493493# ###
494494
495- # support LazyArrays v2.8 where BlockVec is moved
496- if isdefined (LazyBandedMatrices. LazyArraysBlockArraysExt, :BlockVec )
497- const BlockVec = LazyBandedMatrices. LazyArraysBlockArraysExt. BlockVec
498- else
499- const BlockVec{T, M<: AbstractMatrix{T} } = ApplyVector{T, typeof (blockvec), <: Tuple{M} }
500-
501- BlockVec {T} (M:: AbstractMatrix{T} ) where T = ApplyVector {T} (blockvec, M)
502- BlockVec (M:: AbstractMatrix{T} ) where T = BlockVec {T} (M)
503- axes (b:: BlockVec ) = (blockedrange (Fill (size (b. args[1 ])... )),)
504- size (b:: BlockVec ) = (length (b. args[1 ]),)
505-
506- view (b:: BlockVec , K:: Block{1} ) = view (b. args[1 ], :, Int (K))
507- Base. @propagate_inbounds getindex (b:: BlockVec , k:: Int ) = b. args[1 ][k]
508- Base. @propagate_inbounds setindex! (b:: BlockVec , v, k:: Int ) = setindex! (b. args[1 ], v, k)
509-
510- _resize! (A:: AbstractMatrix , m, n) = A[1 : m, 1 : n]
511- _resize! (At:: Transpose , m, n) = transpose (transpose (At)[1 : n, 1 : m])
512- _resize! (Ac:: Adjoint , m, n) = (Ac' )[1 : n, 1 : m]'
513- resize! (b:: BlockVec , K:: Block{1} ) = BlockVec (_resize! (b. args[1 ], size (b. args[1 ],1 ), Int (K)))
514-
515- applylayout (:: Type{typeof(blockvec)} , :: AbstractPaddedLayout ) = PaddedColumns {ApplyLayout{typeof(blockvec)}} ()
516- paddeddata (b:: BlockVec ) = BlockVec (paddeddata (b. args[1 ]))
517- end
518-
495+ const BlockVec = LazyBandedMatrices. LazyArraysBlockArraysExt. BlockVec
519496
520497# ###
521498# summary
0 commit comments