20 static Interval fwd(
const Interval& x1);
21 static ScalarType fwd_natural(
const ScalarType& x1);
22 static ScalarType fwd_centered(
const ScalarType& x1);
23 static void bwd(
const Interval& y, Interval& x1);
30 ceil(
const ScalarExpr& x1)
32 return { std::make_shared<AnalyticOperationExpr<CeilOp,ScalarType,ScalarType>>(x1) };
42 inline ScalarType CeilOp::fwd_natural(
const ScalarType& x1)
50 inline ScalarType CeilOp::fwd_centered(
const ScalarType& x1)
71 double r = std::floor(y.ub());
72 double l = std::ceil(y.lb());
78 x1 &= Interval(l,r) + Interval(-1,0);
Interval class, for representing closed and connected subsets of .
Definition codac2_Interval.h:62
Interval ceil(const Interval &x)
Returns ceil of .
Definition codac2_Interval_operations_impl.h:294