GeographicLib: DST.hpp Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10#if !defined(GEOGRAPHICLIB_DST_HPP)
11#define GEOGRAPHICLIB_DST_HPP 1
12
14
15#include
16#include
17
18
19template<typename scalar_t>
20class kissfft;
21
22
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
64 private:
66 int _nN;
67 typedef kissfft fft_t;
68 std::shared_ptr<fft_t> _fft;
69
70 void fft_transform(real data[], real F[], bool centerp) const;
71
72 void fft_transform2(real data[], real F[]) const;
73 public:
74
75
76
77
78
80
81
82
83
84
85
87
88
89
90
91
92
93 int N() const { return _nN; }
94
95
96
97
98
99
100
101
102
103
104
106 const;
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
125 const;
126
127
128
129
130
131
132
133
134
135
138
139
140
141
142
143
144
145
146
147
148
149
150
151
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
173 };
174
175}
176
177#endif
Header for GeographicLib::Constants class.
#define GEOGRAPHICLIB_EXPORT
GeographicLib::Math::real real
Discrete sine transforms.
Definition DST.hpp:63
void transform(std::function< real(real)> f, real F[]) const
static real eval(real sinx, real cosx, const real F[], int N)
int N() const
Definition DST.hpp:93
void refine(std::function< real(real)> f, real F[]) const
static real integral(real sinx, real cosx, const real F[], int N)
Namespace for GeographicLib.