thelycaeum has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm having problems with PDL::FFTW. Perl says: Can't locate PDL/FFTW.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at E:\fftw\noname.pl line 6, <DATA> line 206. BEGIN failed--compilation aborted at E:\fftw\noname.pl line 6, <DATA> line 206. PDL is installed and working, see my code example:
# usr/bin bla # Using FFTW for fractional calculus use PDL; use PDL::Complex; use PDL::IO::Misc; use PDL::FFTW; $PDL::IO::Misc::colsep="\t"; $cols=2; $rows=0; open (DATA_1, "data.dat") || die "File not found\n"; $j=-1; while (<DATA_1>) { $j++; chomp($_); my @dummy=split(/\t/, $_); (@voltage[$j]) = @dummy[0]."\n"; (@current[$j]) = @dummy[1]."\n"; } close(DATA_1); print @voltage; print "\n\n"; print @current; print "\n\n"; $pdlcurrent = pdl(@current); print nelem ($pdlcurrent); print "\n\n"; # until this point everything works fine $fft_test = fftw ($pdlcurrent);
Any suggestions? Where do I get FFTW.pm from? It's not to be found in PDL directory!

Replies are listed 'Best First'.
Re: PDL::FFTW on WinXP/ActivePerl
by VinsWorldcom (Prior) on Aug 18, 2011 at 14:25 UTC

      PDL::FFTW is not on ppm

      PDL::FFT says

      ALTERNATIVE FFT PACKAGES

      Various other modules - such as PDL::FFTW and PDL::Slatec - contain FFT routines. However, unlike PDL::FFT, these modules are optional, and so may not be installed.
Re: PDL::FFTW on WinXP/ActivePerl
by syphilis (Archbishop) on Aug 19, 2011 at 06:56 UTC
    For a build of PDL (version 2.4.9) that *does* contain the PDL::FFTW module run:
    ppm install http://www.sisyphusion.tk/ppm/PDL.ppd
    Cheers,
    Rob