Skip to content

Commit

Permalink
add alias hull for convex hull function
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkichler committed Jul 16, 2024
1 parent 3b9bdb0 commit fba9efc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/cuinterval/arithmetic/basic.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,12 @@ inline constexpr __device__ interval<T> convex_hull(interval<T> x, interval<T> y
return { min(x.lb, y.lb), max(x.ub, y.ub) };
}

template<typename T>
inline constexpr __device__ interval<T> hull(interval<T> x, interval<T> y)
{
return convex_hull(x, y);
}

template<typename T>
inline constexpr __device__ interval<T> ceil(interval<T> x)
{
Expand Down

0 comments on commit fba9efc

Please sign in to comment.