Ocean
Loading...
Searching...
No Matches
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
15namespace Ocean
16{
17
18/**
19 * Definition of a complex number based on the double precision floating point data type.
20 * @ingroup math
21 */
22using ComplexD = std::complex<double>;
23
24/**
25 * Definition of a complex number based on the single precision floating point data type.
26 * @ingroup math
27 */
28using ComplexF = std::complex<float>;
29
30/**
31 * Definition of a complex number based on the default floating point precision data type.
32 * @ingroup math
33 */
34using Complex = std::complex<Scalar>;
35
36/**
37 * Definition of a vector holding complex objects.
38 * @ingroup math
39 */
40using Complexes = std::vector<Complex>;
41
42}
43
44#endif // META_OCEAN_MATH_COMPLEX_H
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
std::complex< double > ComplexD
Definition of a complex number based on the double precision floating point data type.
Definition Complex.h:22
The namespace covering the entire Ocean framework.
Definition Accessor.h:15