Math::GSL::FFT(3pm) User Contributed Perl Documentation Math::GSL::FFT(3pm)

Math::GSL::FFT - Fast Fourier Transforms (FFT)

    use Math::GSL::FFT qw /:all/;
    my $input1              = [ 0 .. 7 ];
    my $N1                  = @$input1;
    my ($status1, $output1) = gsl_fft_real_radix2_transform ($input, 1, $N1);
    my ($status2, $output2) = gsl_fft_halfcomplex_radix2_inverse($output2, 1, $N1);
    # $input1 == $output2
    my $input2              = [ 0 .. 6 ];
    my $N2                  = @$input;
    my $workspace1          = gsl_fft_real_workspace_alloc($N2);
    my $wavetable1          = gsl_fft_real_wavetable_alloc($N2);
    my ($status3,$output3)  = gsl_fft_real_transform ($input, 1, $N2, $wavetable1, $workspace1);
    my $wavetable4          = gsl_fft_halfcomplex_wavetable_alloc($N2);
    my $workspace4          = gsl_fft_real_workspace_alloc($N2);
    my ($status4,$output4)  = gsl_fft_halfcomplex_inverse($output, 1, $N2, $wavetable4, $workspace4);
    # $input2 == $output4

This module also includes the following constants :

For more information on the functions, we refer you to the GSL official documentation: <http://www.gnu.org/software/gsl/manual/html_node/>

Jonathan "Duke" Leto <jonathan@leto.net> and Thierry Moisan <thierry.moisan@gmail.com>

Copyright (C) 2008-2024 Jonathan "Duke" Leto and Thierry Moisan

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2024-10-15 perl v5.40.0