npfaro.c

来自「seismic software,very useful」· C语言 代码 · 共 29 行

C
29
字号
/* Copyright (c) Colorado School of Mines, 1990./* All rights reserved.                       *//*FUNCTION:  return optimal n between nmin and nmax forreal-to-complex or complex-to-real prime factor fftsPARAMETERS:nmin        i lower bound on returned value (see notes below)nmax        i desired (but not guaranteed) upper bound on returned valueNOTES:Current implemenations of real-to-complex and complex-to-real prime factor ffts require that the transform length n be even and that n/2 be a valid length for a complex-to-complex prime factor fft.  The value returned by npfaro satisfies these conditions.Also, see notes for npfao.AUTHOR:  I. D. Hale, Colorado School of Mines, 06/16/89*/#include "cwp.h"int npfaro (int nmin, int nmax){    return 2*npfao((nmin+1)/2,(nmax+1)/2);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?