// Author: Aime' Fournier // E-mail: fournier@ucar.edu #include "qf.h" // for pqf ... // See 2009/8/4 e-mail from john@michalakes.us #ifndef CRAY # ifdef NOUNDERSCORE # define DWTAI2_W dwtai2_w # else # ifdef F2CSTYLE # define DWTAI2_W dwtai2_w__ # else # define DWTAI2_W dwtai2_w_ # endif # endif #endif void DWTAI2_W (char *nam, // in: filter name int *ran, // in: filter length real *u, // in/out: data & transform real *s, // scratch space int *iv, // v-space lengths int *ia, // w-space starts int *lm) { // maximum level extern real l2norm(); // l2 norm int *ja[2],*jv[2]; // reshapes of ia & iv pqf *g,*h; // wavelet hpf & lpf //real r; // only for printf(l2norm()) //printf("dwtai2_w::dwtai2_w(%s,%2d,{",nam,*ran); //for( int i=0; i<4*ia[*lm+1]; i+=ia[*lm+1] ) { // printf("{"); // for( int j=i; jfp);free(g);free(h->fp);free(h); }