sigma  0.0.0
Loading...
Searching...
No Matches
complex.hpp
Go to the documentation of this file.
1#pragma once
2#include "sigma/uncertain.hpp"
3#include <complex>
4
8
9namespace sigma {
10
22template<typename T>
23const Uncertain<T>& conj(const Uncertain<T>& a) {
24 return a;
25}
26
38template<typename T>
39const Uncertain<T>& real(const Uncertain<T>& a) {
40 return a;
41}
42
54template<typename T>
56 return Uncertain<T>{0.0, 0.0};
57}
58
59} // namespace sigma
Models an unceratin variable.
Definition uncertain.hpp:33
The primary namespace for the sigma library.
Definition operation_common.hpp:10
const Uncertain< T > & conj(const Uncertain< T > &a)
Complex Conjugate.
Definition complex.hpp:23
const Uncertain< T > & real(const Uncertain< T > &a)
Get the real part of a value.
Definition complex.hpp:39
Uncertain< T > imag(const Uncertain< T > &a)
Get the imaginary part of a value.
Definition complex.hpp:55
Defines the Uncertain class.