JuliaApproximation / DomainSets.jl

A Julia package for describing domains as continuous sets of elements
MIT License
72 stars 12 forks source link

boundingbox does not work for 1-D Balls #113

Closed zsunberg closed 2 years ago

zsunberg commented 2 years ago
julia> boundingbox(Ball(1.0, 1.0))
ERROR: MethodError: no method matching map_boundingbox(::ChebyshevInterval{Float64}, ::DomainSets.ScalarAffineMap{Float64})
Closest candidates are:
  map_boundingbox(::Interval, ::Any) at ~/.julia/dev/DomainSets/src/domains/boundingbox.jl:58
  map_boundingbox(::DomainSets.HyperRectangle, ::DomainSets.AbstractAffineMap) at ~/.julia/dev/DomainSets/src/domains/boundingbox.jl:66
Stacktrace:
 [1] boundingbox(d::DomainSets.GenericBall{Float64, :closed, Float64})
   @ DomainSets ~/.julia/dev/DomainSets/src/domains/ball.jl:239
 [2] top-level scope
   @ REPL[38]:1
daanhb commented 2 years ago

This line should be

function map_boundingbox(box::AbstractInterval, fmap)

instead.