Skip to content

Commit

Permalink
Fix mid for IntervalBox to return SVector (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpsanders authored May 19, 2017
1 parent 414456f commit 222d765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multidim/intervalbox.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ IntervalBox(x::Interval) = IntervalBox( (x,) ) # single interval treated as tup
## arithmetic operations
# Note that standard arithmetic operations are implemented automatically by FixedSizeArrays.jl

mid(X::IntervalBox) = [mid(x) for x in X]
mid(X::IntervalBox) = mid.(X)


## set operations
Expand Down

0 comments on commit 222d765

Please sign in to comment.