codac 1.5.6
Loading...
Searching...
No Matches
codac2_hull.h
1
9
10#pragma once
11
14#include "codac2_matrices.h"
15#include "codac2_Wrapper.h"
16
17namespace codac2
18{
19 /*template<typename OtherDerived>
20 inline auto hull(const Eigen::MatrixBase<OtherDerived>& x1)
21 {
22 return x1.template cast<Interval>();
23 }*/
24
25 template<typename X1,typename... X>
26 inline Wrapper<X1>::Domain hull(const X1& x1, const X&... x)
27 {
28 if constexpr(sizeof...(x) > 0)
29 return hull(x1) | hull(x...);
30 else
31 return x1.template cast<Interval>();
32 }
33}