Skip to content

Commit

Permalink
Delete show from intervalbox.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
dpsanders committed Jun 4, 2016
1 parent e2d7878 commit 2d22481
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/multidim/intervalbox.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ end
IntervalBox(x::Interval) = IntervalBox( (x,) ) # single interval treated as tuple with one element


## arithmetic operations
# Note that standard arithmetic operations are implemented automatically by FixedSizeArrays.jl

## arithmetic operations
# Note that standard arithmetic operations are implemented automatically by FixedSizeArrays.jl

Expand All @@ -30,26 +27,4 @@ isempty(X::IntervalBox) = any(isempty, X)

diam(X::IntervalBox) = maximum([diam(x) for x in X])

<<<<<<< 86fd9400d143f051860cbe7e9b054e45e73a76e1
<<<<<<< 005b38c0425c4ffebae1850d7627a7f154d71adc
=======
>>>>>>> Rewrite a couple of IntervalBox functions; better structure for intervalbox.jl
emptyinterval(X::IntervalBox) = IntervalBox(map(emptyinterval, X))


## printing
<<<<<<< 86fd9400d143f051860cbe7e9b054e45e73a76e1
=======
emptyinterval(x::IntervalBox) = IntervalBox([emptyinterval(i) for i in x]...)
>>>>>>> Add emptyinterval(x::IntervalBox)
=======
>>>>>>> Rewrite a couple of IntervalBox functions; better structure for intervalbox.jl

function show(io::IO, X::IntervalBox)
for (i, x) in enumerate(X)
print(io, x)
if i != length(X)
print(io, " × ")
end
end
end

0 comments on commit 2d22481

Please sign in to comment.