Skip to content

Support hcat(2, zeros(1,∞)) #77

@dlfivefifty

Description

@dlfivefifty
julia> hcat(5,zeros(1,∞))
ERROR: ArgumentError: Cannot create infinite Array
Stacktrace:
 [1] (Array{Float64, N} where N)(#unused#::UndefInitializer, #unused#::Tuple{Int64, Infinities.InfiniteCardinal{0}})
   @ InfiniteArrays ~/Projects/InfiniteArrays.jl/src/infarrays.jl:2
 [2] cat_similar(A::Int64, #unused#::Type{Float64}, shape::Tuple{Int64, Infinities.InfiniteCardinal{0}})
   @ Base ./abstractarray.jl:1586
 [3] _cat_t(::Val{2}, ::Type{Float64}, ::Int64, ::Vararg{Any, N} where N)
   @ Base ./abstractarray.jl:1647
 [4] cat_t(::Type{Float64}, ::Int64, ::Vararg{Any, N} where N; dims::Val{2})
   @ Base ./abstractarray.jl:1643
 [5] _cat(::Val{2}, ::Int64, ::Vararg{Any, N} where N)
   @ Base ./abstractarray.jl:1641
 [6] cat(::Int64, ::Vararg{Any, N} where N; dims::Val{2})
   @ Base ./abstractarray.jl:1781
 [7] hcat(::Int64, ::LazyArrays.CachedArray{Float64, 2, Matrix{Float64}, FillArrays.Zeros{Float64, 2, Tuple{Base.OneTo{Int64}, InfiniteArrays.OneToInf{Int64}}}})
   @ Base ./abstractarray.jl:1761
 [8] top-level scope
   @ REPL[45]:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions