@@ -18,6 +18,8 @@ module fftpack
18
18
19
19
public :: dcosti, dcost
20
20
public :: dct, idct
21
+
22
+ public :: rk
21
23
22
24
interface
23
25
@@ -157,20 +159,20 @@ end subroutine dcosqb
157
159
! >
158
160
! > Initialize `dcost`. ([Specification](../page/specs/fftpack.html#dcosti))
159
161
pure subroutine dcosti (n , wsave )
160
- import dp
162
+ import rk
161
163
integer , intent (in ) :: n
162
- real (kind= dp ), intent (out ) :: wsave(* )
164
+ real (kind= rk ), intent (out ) :: wsave(* )
163
165
end subroutine dcosti
164
166
165
167
! > Version: experimental
166
168
! >
167
169
! > Discrete fourier cosine transform of an even sequence.
168
170
! > ([Specification](../page/specs/fftpack.html#dcost))
169
171
pure subroutine dcost (n , x , wsave )
170
- import dp
172
+ import rk
171
173
integer , intent (in ) :: n
172
- real (kind= dp ), intent (inout ) :: x(* )
173
- real (kind= dp ), intent (in ) :: wsave(* )
174
+ real (kind= rk ), intent (inout ) :: x(* )
175
+ real (kind= rk ), intent (in ) :: wsave(* )
174
176
end subroutine dcost
175
177
176
178
end interface
@@ -252,19 +254,19 @@ end function iqct_rk
252
254
! > Discrete fourier cosine (forward) transform of an even sequence.
253
255
! > ([Specification](../page/specs/fftpack.html#dct))
254
256
interface dct
255
- pure module function dct_dp (x, n) result(result)
256
- real (kind= dp ), intent (in ) :: x(:)
257
+ pure module function dct_rk (x, n) result(result)
258
+ real (kind= rk ), intent (in ) :: x(:)
257
259
integer , intent (in ), optional :: n
258
- real (kind= dp ), allocatable :: result(:)
259
- end function dct_dp
260
+ real (kind= rk ), allocatable :: result(:)
261
+ end function dct_rk
260
262
end interface dct
261
263
262
264
! > Version: experimental
263
265
! >
264
266
! > Discrete fourier cosine (backward) transform of an even sequence.
265
267
! > ([Specification](../page/specs/fftpack.html#idct))
266
268
interface idct
267
- module procedure :: dct_dp
269
+ module procedure :: dct_rk
268
270
end interface idct
269
271
270
272
! > Version: experimental
0 commit comments