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

limits(x, y) requires arrays of the same type for no reason #88

Closed
efaulhaber opened this issue May 31, 2023 · 1 comment · Fixed by #90
Closed

limits(x, y) requires arrays of the same type for no reason #88

efaulhaber opened this issue May 31, 2023 · 1 comment · Fixed by #90

Comments

@efaulhaber
Copy link
Contributor

Something like this doesn't work, for no other reason than too specific dispatching:

julia> using CellListMap, StaticArrays

julia> x = [[0.0, 0.0]]; y = [SVector(0.0, 0.0)];

julia> limits(x, y)
ERROR: MethodError: no method matching limits(::Vector{Vector{Float64}}, ::Vector{SVector{2, Float64}})

Closest candidates are:
  limits(::AbstractVector{<:AbstractVector})
   @ CellListMap ~/.julia/dev/CellListMap/src/CellOperations.jl:296
  limits(::T, ::T) where T<:(AbstractVector{<:AbstractVector})
   @ CellListMap ~/.julia/dev/CellListMap/src/CellOperations.jl:315
@lmiq
Copy link
Member

lmiq commented Jun 4, 2023

available in version 0.8.17

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

Successfully merging a pull request may close this issue.

2 participants