Skip to content

Commit 975b081

Browse files
committed
remove moved code
1 parent 09d1626 commit 975b081

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ BlockArrays = "1.0"
2828
BlockBandedMatrices = "0.13"
2929
FillArrays = "1.0"
3030
InfiniteArrays = "0.15"
31-
LazyArrays = "2.2.3"
31+
LazyArrays = "2.8"
3232
MatrixFactorizations = "3.0"
3333
StaticArrays = "1.0"
3434
julia = "1.10"

src/blockconcat.jl

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)