sigma  1.0.0
Loading...
Searching...
No Matches
basic.hpp
Go to the documentation of this file.
1#pragma once
2#include "sigma/interval.hpp"
3#include "sigma/uncertain.hpp"
4
8
9namespace sigma {
10
20template<typename T>
22
32template<typename T>
34
49template<typename T>
51
61template<typename T>
63
73template<typename T>
75
87template<typename T>
89
101template<typename T>
103
114template<typename T>
115Uncertain<T> fmod(const Uncertain<T>& a, const Uncertain<T>& b);
117template<typename T>
118Uncertain<T> fmod(const Uncertain<T>& a, double b);
120template<typename T>
121Uncertain<T> fmod(double a, const Uncertain<T>& b);
122
133template<typename T>
135
147template<typename T, typename U>
148Uncertain<T> copysign(const Uncertain<T>& a, const U& b);
149
161template<typename T, typename U>
162U copysign(const U& a, const Uncertain<T>& b);
163
173template<typename T>
175
185template<typename T>
187
188} // namespace sigma
189
190#include "basic.ipp"
Models a numeric interval.
Definition interval.hpp:21
Models an unceratin variable.
Definition uncertain.hpp:33
Defines the Interval class.
The primary namespace for the sigma library.
Definition operation_common.hpp:10
Uncertain< T > round(const Uncertain< T > &a)
Round to the nearest integar, away from zero in halfway case.
Definition basic.ipp:93
Uncertain< T > floor(const Uncertain< T > &a)
Nearest integer not greater than the given value.
Definition basic.ipp:43
Uncertain< T > abs2(const Uncertain< T > &a)
The Square of the Absolute Value.
Definition basic.ipp:33
Uncertain< T > ceil(const Uncertain< T > &a)
Nearest integer not less than the given value.
Definition basic.ipp:38
Uncertain< T > fabs(const Uncertain< T > &a)
Absolute Value.
Definition basic.ipp:16
Uncertain< T > copysign(const Uncertain< T > &a, const Uncertain< T > &b)
Copy the sign of one value to another.
Definition basic.ipp:70
Uncertain< T > abs(const Uncertain< T > &a)
Absolute Value.
Definition basic.ipp:9
Uncertain< T > trunc(const Uncertain< T > &a)
Remove the fractional part from a variable.
Definition basic.ipp:88
Uncertain< T > fmod(const Uncertain< T > &a, const Uncertain< T > &b)
Floating point module.
Definition basic.ipp:48
Defines the Uncertain class.