XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ sintmi()

void sintmi ( int  n,
double  wsave[],
int  lwsave,
int *  info 
)

Initialization of work data for sintmf and sintmb

Purpose
sintmi initializes array wsave[] for use in its companion routines sintmf and sintmb. The prime factorization of n together with a tabulation of the trigonometric functions are computed and stored in array wsave[].

Note - The initialization of wsave[] is not necessary for the succeeding call of sintmf or sintmb for the same n value. If the value of n has been changed, wsave[] should be re-initialized by this routine.
Parameters
[in]nThe length of the sequence to be transformed. (n >= 1)
The transform is most efficient when n+1 is a product of small primes.
[in]wsave[]Array wsave[lwsave]
Work data, containing the prime factors of n and also containing certain trigonometric values which will be used in routines sintmf or sintmb.
[in]lwsaveThe length of the array wsave[]. (lwsave >= n/2 + n + ln(n)/ln(2) + 4)
[out]info= 0: Successful exit
= -1: The argument n had an illegal value (n < 1)
= -3: The argument lwsave had an illegal value (lwsave not big enough)
Reference
FFTPACK 5.1