Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dlfivefifty opened this issue Jun 22, 2021 · 0 comments
Open

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

dlfivefifty opened this issue Jun 22, 2021 · 0 comments

Comments

@dlfivefifty
Copy link
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant