sigma  1.0.0
Loading...
Searching...
No Matches
make_triplex.hpp
Go to the documentation of this file.
1#pragma once
4#include <cmath>
5#include <utility>
6
15
16namespace sigma {
17
18template<typename IntervalType>
19class Triplex;
20
21namespace detail_ {
22
43template<typename IntervalType>
45 typename IntervalType::value_t nominal) {
46 using triplex_t = Triplex<IntervalType>;
47 if(std::isfinite(nominal)) { bounds = sigma::widen(bounds, nominal); }
48 return triplex_t(std::move(bounds), nominal,
49 typename triplex_t::unchecked_tag_{});
50}
51
52} // namespace detail_
53} // namespace sigma
54
GeneralInterval< T > widen(const GeneralInterval< T > &a, typename GeneralInterval< T >::value_t point)
Widens an interval just enough to contain a point.
Definition general_interval.hpp:836
Models an interval together with a best estimate inside it.
Definition triplex.hpp:42
Defines the GeneralInterval class.
Defines the Interval class.
The namespace that contains the implementation details of the library.
Definition convert.hpp:18
Triplex< IntervalType > make_triplex_(IntervalType bounds, typename IntervalType::value_t nominal)
Assembles a triplex from the result of an operation.
Definition make_triplex.hpp:44
The primary namespace for the sigma library.
Definition affine.hpp:12
Defines the Triplex class.