diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34d7e40..e2bb954 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,8 @@ jobs: fail-fast: false matrix: version: - - '1.10' + - '1' + - 'lts' os: - ubuntu-latest - macOS-latest diff --git a/Project.toml b/Project.toml index 7d88418..6f939df 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "InfiniteLinearAlgebra" uuid = "cde9dba0-b1de-11e9-2c62-0bab9446c55c" -version = "0.8.4" +version = "0.8.5" [deps] ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a" diff --git a/src/InfiniteLinearAlgebra.jl b/src/InfiniteLinearAlgebra.jl index 175f1c2..0003bba 100644 --- a/src/InfiniteLinearAlgebra.jl +++ b/src/InfiniteLinearAlgebra.jl @@ -34,7 +34,7 @@ import FillArrays: AbstractFill, AbstractFillMatrix, axes_print_matrix_row, geti import InfiniteArrays: AbstractInfUnitRange, InfAxes, InfRanges, InfStepRange, InfUnitRange, OneToInf, PosInfinity, InfIndexRanges -import Infinities: InfiniteCardinal, Infinity +import Infinities: InfiniteCardinal, Infinity, RealInfinity import LazyArrays: AbstractCachedMatrix, AbstractCachedVector, AbstractLazyLayout, ApplyArray, ApplyLayout, ApplyMatrix, CachedArray, CachedLayout, CachedMatrix, CachedVector, LazyArrayStyle, LazyLayout, diff --git a/src/blockbanded/blockbanded.jl b/src/blockbanded/blockbanded.jl index 68383d2..619a154 100644 --- a/src/blockbanded/blockbanded.jl +++ b/src/blockbanded/blockbanded.jl @@ -17,6 +17,7 @@ BlockBandedMatrices.blockbanded_rowstop(A, x::InfiniteCardinal{0}) = x BlockArrays.blocklasts(a::InfRanges) = Fill(length(a),1) +BlockArrays.findblock(::BlockedOneTo, ::RealInfinity) = Block(ℵ₀) function BlockArrays.sortedunion(a::Vcat{Int,1,<:Tuple{Union{Int,AbstractVector{Int}},<:AbstractRange}}, b::Vcat{Int,1,<:Tuple{Union{Int,AbstractVector{Int}},<:AbstractRange}}) diff --git a/test/runtests.jl b/test/runtests.jl index 4481369..c76adc4 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -6,7 +6,7 @@ import InfiniteLinearAlgebra: qltail, toeptail, tailiterate, tailiterate!, tail_ BandedToeplitzLayout, PertToeplitzLayout, TridiagonalToeplitzLayout, BidiagonalToeplitzLayout, BidiagonalConjugation import Base: BroadcastStyle, oneto -import BlockArrays: _BlockArray, blockcolsupport +import BlockArrays: _BlockArray, blockcolsupport, findblock import BlockBandedMatrices: isblockbanded, _BlockBandedMatrix import MatrixFactorizations: QLPackedQ import BandedMatrices: bandeddata, _BandedMatrix, BandedStyle @@ -472,6 +472,10 @@ end end end +@testset "findblock at +∞, HarmonicOrthogonalPolynomials#88" begin + @test findblock(blockedrange(1:2:∞), RealInfinity()) == Block(ℵ₀) +end + include("test_hessenbergq.jl") include("test_infql.jl") include("test_infqr.jl")