blob: cdbc5757b9c4dfb67a0e642a02cd8fa5211da67f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
task xft
define MAXPIX 4096
# XFT -- Test complex transform routines.
procedure xft
complex x[MAXPIX]
int npix, ntrip
long seed
int i, clgeti()
real urand()
begin
npix = max(1, min(MAXPIX, clgeti ("npix")))
ntrip = clgeti ("ntrip")
seed = 1
do i = 1, NPIX
x[i] = complex (urand(seed), urand(seed))
do i = 1, ntrip {
call afftx (x, x, NPIX)
call aiftx (x, x, NPIX)
}
end
|