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

Ambiguity in vcat on master / upcoming 1.10. #148

Closed
KristofferC opened this issue Nov 28, 2023 · 3 comments
Closed

Ambiguity in vcat on master / upcoming 1.10. #148

KristofferC opened this issue Nov 28, 2023 · 3 comments

Comments

@KristofferC
Copy link

From PkgEval: https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_hash/46617e5_vs_0ba6ec2/SemiclassicalOrthogonalPolynomials.primary.log

  MethodError: vcat(::Vector{Float64}, ::Zeros{Float64, 1, Tuple{InfiniteArrays.OneToInf{Int64}}}) is ambiguous.
  
  Candidates:
    vcat(a::AbstractVector, b::FillArrays.AbstractFill{<:Any, 1, <:Tuple{InfiniteArrays.OneToInf}})
      @ InfiniteArrays ~/.julia/packages/InfiniteArrays/UOszV/src/InfiniteArrays.jl:112
    vcat(X1::Union{Number, AbstractVecOrMat{<:Number}}, X::Union{Number, AbstractVecOrMat{<:Number}}...)
      @ SparseArrays /opt/julia/share/julia/stdlib/v1.10/SparseArrays/src/sparsevector.jl:1235
  
  Possible fix, define
    vcat(::AbstractVector{<:Number}, ::FillArrays.AbstractFill{<:Number, 1, <:Tuple{InfiniteArrays.OneToInf}})
  
  Stacktrace:
    [1] pad(c::Vector{Float64}, ax::InfiniteArrays.OneToInf{Int64})
      @ InfiniteLinearAlgebra ~/.julia/packages/InfiniteLinearAlgebra/pla7L/src/InfiniteLinearAlgebra.jl:110
@jishnub
Copy link
Member

jishnub commented Nov 29, 2023

Arises from type-piracy in SparseArrays:

JuliaSparse/SparseArrays.jl#431

@KristofferC
Copy link
Author

Yes, the situation is unfortunate and likely occurs from historical reasons where SparseArrays was not even an stdlib. I don't think a perfect solution is possible in a reasonable time frame so some workaround / compromise has to be done.

@jishnub
Copy link
Member

jishnub commented Apr 4, 2024

Closing, as this should be solved now

@jishnub jishnub closed this as completed Apr 4, 2024
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

2 participants