Skip to content

Commit

Permalink
Implement suggestions of the review
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Benet committed Jun 23, 2018
1 parent b088bfd commit 53f075a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/multidim/intervalbox.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ diam(X::IntervalBox) = maximum(diam.(X.v))

emptyinterval(X::IntervalBox{N,T}) where {N,T} = IntervalBox(emptyinterval.(X.v))

isinf(X::IntervalBox) = any(isinf.(X))
isinf(X::IntervalBox) = any(isinf(X))

isinterior(X::IntervalBox{N,T}, Y::IntervalBox{N,T}) where {N,T} = all(isinterior.(X, Y))

contains_zero(X::SVector) = all(contains_zero.(X))
contains_zero(X::IntervalBox) = all(contains_zero.(X))
contains_zero(X::SVector) = all(contains_zero(X))
contains_zero(X::IntervalBox) = all(contains_zero(X))

import Base
×(a::Interval...) = IntervalBox(a...)
Expand Down

0 comments on commit 53f075a

Please sign in to comment.