Skip to content

Commit 88407ea

Browse files
committed
add type-based DCT function names
1 parent b745bb8 commit 88407ea

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

src/fftpack.f90

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ module fftpack
1717
public :: dcosqi, dcosqf, dcosqb
1818
public :: dcosti, dcost
1919
public :: dct, idct
20+
public :: dct_t1i, dct_t1
21+
public :: dct_t23i, dct_t2, dct_t3
2022

2123
public :: rk
2224

@@ -268,6 +270,46 @@ pure module function idct_rk(x, n, type) result(result)
268270
end function idct_rk
269271
end interface idct
270272

273+
!> Version: experimental
274+
!>
275+
!> Initialize DCT type-1
276+
!> ([Specification](../page/specs/fftpack.html#dct_t1i))
277+
interface dct_t1i
278+
procedure :: dcosti
279+
end interface dct_t1i
280+
281+
!> Version: experimental
282+
!>
283+
!> Perform DCT type-1
284+
!> ([Specification](../page/specs/fftpack.html#dct_t1))
285+
interface dct_t1
286+
procedure :: dcost
287+
end interface dct_t1
288+
289+
!> Version: experimental
290+
!>
291+
!> Initialize DCT types 2, 3
292+
!> ([Specification](../page/specs/fftpack.html#dct_t23i))
293+
interface dct_t23i
294+
procedure :: dcosqi
295+
end interface dct_t23i
296+
297+
!> Version: experimental
298+
!>
299+
!> Perform DCT type-2
300+
!> ([Specification](../page/specs/fftpack.html#dct_t2))
301+
interface dct_t2
302+
procedure :: dcosqb
303+
end interface dct_t2
304+
305+
!> Version: experimental
306+
!>
307+
!> Perform DCT type-3
308+
!> ([Specification](../page/specs/fftpack.html#dct_t3))
309+
interface dct_t3
310+
procedure :: dcosqf
311+
end interface dct_t3
312+
271313
!> Version: experimental
272314
!>
273315
!> Shifts zero-frequency component to center of spectrum.

0 commit comments

Comments
 (0)