@@ -2,10 +2,10 @@ module InfiniteArraysBlockArraysExt
22using InfiniteArrays, BlockArrays
33using InfiniteArrays. ArrayLayouts, InfiniteArrays. LazyArrays, InfiniteArrays. LinearAlgebra
44
5- import Base: length, size, axes, BroadcastStyle, copy, + , -
5+ import Base: length, size, axes, BroadcastStyle, copy, + , - , maximum, OneTo
66import Base. Broadcast: Broadcasted
77import ArrayLayouts: sub_materialize, axes_print_matrix_row
8- import InfiniteArrays: OneToInf, PosInfinity, InfRanges, RealInfinity, Infinity, InfStepRange, TridiagonalToeplitzLayout
8+ import InfiniteArrays: OneToInf, PosInfinity, InfRanges, RealInfinity, Infinity, InfStepRange, TridiagonalToeplitzLayout, InfiniteCardinal
99import BlockArrays: AbstractBlockLayout, sizes_from_blocks, BlockTridiagonal, OneToCumsum, BlockSlice, AbstractBlockedUnitRange,
1010 BlockLayout
1111import LazyArrays: PaddedColumns, LazyArrayStyle
@@ -28,6 +28,8 @@ BlockArrays.blocklasts(a::InfRanges) = Fill(length(a),1)
2828
2929BlockArrays. findblock (:: BlockedOneTo , :: RealInfinity ) = Block (ℵ₀)
3030
31+ maximum (:: BlockRange {1 , Tuple{OneTo{InfiniteCardinal{0 }}}}) = Block (ℵ₀)
32+
3133function BlockArrays. sortedunion (a:: Vcat {Int,1 ,<: Tuple{Union{Int,AbstractVector{Int}},<:AbstractRange} },
3234 b:: Vcat {Int,1 ,<: Tuple{Union{Int,AbstractVector{Int}},<:AbstractRange} })
3335 @assert a == b # TODO : generailse? Not sure how to do so in a type stable fashion
0 commit comments