sigma  0.0.0
Loading...
Searching...
No Matches
basic.hpp
Go to the documentation of this file.
1#pragma once
2#include "sigma/uncertain.hpp"
3
7
8namespace sigma {
9
19template<typename T>
21
31template<typename T>
33
43template<typename T>
45
57template<typename T>
59
71template<typename T>
73
84template<typename T>
85Uncertain<T> fmod(const Uncertain<T>& a, const Uncertain<T>& b);
87template<typename T>
88Uncertain<T> fmod(const Uncertain<T>& a, double b);
90template<typename T>
91Uncertain<T> fmod(double a, const Uncertain<T>& b);
92
103template<typename T>
105
117template<typename T, typename U>
118Uncertain<T> copysign(const Uncertain<T>& a, const U& b);
119
131template<typename T, typename U>
132U copysign(const U& a, const Uncertain<T>& b);
133
143template<typename T>
145
155template<typename T>
157
158} // namespace sigma
159
160#include "basic.ipp"
Models an unceratin variable.
Definition uncertain.hpp:33
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:81
Uncertain< T > floor(const Uncertain< T > &a)
Nearest integer not greater than the given value.
Definition basic.ipp:31
Uncertain< T > abs2(const Uncertain< T > &a)
The Square of the Absolute Value.
Definition basic.ipp:21
Uncertain< T > ceil(const Uncertain< T > &a)
Nearest integer not less than the given value.
Definition basic.ipp:26
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:58
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:76
Uncertain< T > fmod(const Uncertain< T > &a, const Uncertain< T > &b)
Floating point module.
Definition basic.ipp:36
Defines the Uncertain class.