Ocean
Complex.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #ifndef META_OCEAN_MATH_COMPLEX_H
9 #define META_OCEAN_MATH_COMPLEX_H
10 
11 #include "ocean/math/Math.h"
12 
13 #include <complex>
14 
15 namespace Ocean
16 {
17 
18 /**
19  * Definition of a complex number based on the double precision floating point data type.
20  * @ingroup math
21  */
22 typedef std::complex<double> ComplexD;
23 
24 /**
25  * Definition of a complex number based on the single precision floating point data type.
26  * @ingroup math
27  */
28 typedef std::complex<float> ComplexF;
29 
30 /**
31  * Definition of a complex number based on the default floating point precision data type.
32  * @ingroup math
33  */
34 typedef std::complex<Scalar> Complex;
35 
36 /**
37  * Definition of a vector holding complex objects.
38  * @ingroup math
39  */
40 typedef std::vector<Complex> Complexes;
41 
42 }
43 
44 #endif // META_OCEAN_MATH_COMPLEX_H
std::complex< double > ComplexD
Definition of a complex number based on the double precision floating point data type.
Definition: Complex.h:22
std::complex< float > ComplexF
Definition of a complex number based on the single precision floating point data type.
Definition: Complex.h:28
std::complex< Scalar > Complex
Definition of a complex number based on the default floating point precision data type.
Definition: Complex.h:34
std::vector< Complex > Complexes
Definition of a vector holding complex objects.
Definition: Complex.h:40
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15