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 floor(
const ScalarExpr& x1)
32 return { std::make_shared<AnalyticOperationExpr<FloorOp,ScalarType,ScalarType>>(x1) };
42 inline ScalarType FloorOp::fwd_natural(
const ScalarType& x1)
50 inline ScalarType FloorOp::fwd_centered(
const ScalarType& x1)
52 if(centered_form_not_available_for_args(x1))
53 return fwd_natural(x1);
74 double r = std::floor(y.ub());
75 double l = std::ceil(y.lb());
81 x1 &= Interval(l,r) + Interval(0,1);
Interval class, for representing closed and connected subsets of .
Definition codac2_Interval.h:62
Interval floor(const Interval &x)
Returns floor of .
Definition codac2_Interval_operations_impl.h:289