Line data Source code
1 : /** \file fftwEnvironment.cpp
2 : * \brief Definitions for the fftwEnvironment manager
3 : * \ingroup fft_files
4 : * \author Jared R. Males (jaredmales@gmail.com)
5 : *
6 : */
7 :
8 : //***********************************************************************//
9 : // Copyright 2020-2025 Jared R. Males (jaredmales@gmail.com)
10 : //
11 : // This file is part of mxlib.
12 : //
13 : // mxlib is free software: you can redistribute it and/or modify
14 : // it under the terms of the GNU General Public License as published by
15 : // the Free Software Foundation, either version 3 of the License, or
16 : // (at your option) any later version.
17 : //
18 : // mxlib is distributed in the hope that it will be useful,
19 : // but WITHOUT ANY WARRANTY; without even the implied warranty of
20 : // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 : // GNU General Public License for more details.
22 : //
23 : // You should have received a copy of the GNU General Public License
24 : // along with mxlib. If not, see <http://www.gnu.org/licenses/>.
25 : //***********************************************************************//
26 :
27 : #include "math/ft/fftwEnvironment.hpp"
28 :
29 : namespace mx
30 : {
31 : namespace math
32 : {
33 : namespace ft
34 : {
35 :
36 : template <>
37 12 : std::string fftw_typename<float>()
38 : {
39 24 : return "float";
40 : }
41 :
42 : template <>
43 12 : std::string fftw_typename<double>()
44 : {
45 24 : return "double";
46 : }
47 :
48 : template <>
49 12 : std::string fftw_typename<long double>()
50 : {
51 24 : return "long_double";
52 : }
53 :
54 : #ifdef HASQUAD
55 : template <>
56 : std::string fftw_typename<__float128>()
57 : {
58 : return "quad";
59 : }
60 : #endif
61 :
62 : } // namespace fft
63 : } // namespace math
64 : } // namespace mx
|