sigma  1.0.0
Loading...
Searching...
No Matches
basic.ipp
1#pragma once
2#include <cmath>
3
4namespace sigma {
5
6template<typename IntervalType>
9 a, [](const IntervalType& x) { return sigma::abs(x); },
10 [](auto m) { return std::abs(m); });
11}
12
13template<typename IntervalType>
16 a, [](const IntervalType& x) { return sigma::fabs(x); },
17 [](auto m) { return std::fabs(m); });
18}
19
20} // namespace sigma
Models an interval together with a best estimate inside it.
Definition triplex.hpp:42
Triplex< IntervalType > apply_unary_(const Triplex< IntervalType > &a, BoundsFunction &&bounds_fxn, NominalFunction &&nominal_fxn)
Applies a unary function to a triplex.
Definition apply_unary.hpp:49
The primary namespace for the sigma library.
Definition affine.hpp:12
Affine< T > abs(const Affine< T > &a)
Absolute Value of an affine form.
Definition basic.ipp:9
Affine< T > fabs(const Affine< T > &a)
Absolute Value of an affine form.
Definition basic.ipp:22