Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
dpsanders committed Jul 13, 2018
1 parent 461ce47 commit bf46a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/multidim/intervalbox.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ setindex(X::IntervalBox, y, i) = IntervalBox( setindex(X.v, y, i) )

start(X::IntervalBox{N,T}) where {N,T} = 1

next(X::IntervalBox{N,T}, state) where {N,T} = @inbounds (X.v[state], state+1)
next(X::IntervalBox{N,T}, state) where {N,T} = (X[state], state+1)

done(X::IntervalBox{N,T}, state) where {N,T} = state > N

Expand All @@ -49,7 +49,7 @@ Return a vector of the `mid` of each interval composing the `IntervalBox`.
See `mid(X::Interval, α=0.5)` for more informations.
"""
mid(X::IntervalBox) = mid.(X)
mid(X::IntervalBox) = mid.(X.v)
mid(X::IntervalBox, α) = mid.(X.v, α)

big(X::IntervalBox) = big.(X)
Expand Down

0 comments on commit bf46a1f

Please sign in to comment.