Skip to content

Commit 54b2720

Browse files
authored
Add a couple of missing methods for IntervalBox (#142)
1 parent 4140121 commit 54b2720

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/multidim/intervalbox.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,17 @@ eltype(::Type{IntervalBox{N,T}}) where {N,T} = Interval{T} # Note that this is d
3131

3232

3333

34+
# IntervalBox(xx) = IntervalBox(Interval.(xx))
35+
# IntervalBox(xx::SVector) where {N,T} = IntervalBox(Interval.(xx))
36+
3437

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

38-
mid(X::IntervalBox) = mid.(X.v)
41+
mid(X::IntervalBox) = mid.(X)
42+
mid(X::IntervalBox, α) = mid.(X, α)
43+
44+
big(X::IntervalBox) = big.(X)
3945

4046

4147
## set operations

0 commit comments

Comments
 (0)