We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25af72c commit 812287fCopy full SHA for 812287f
README.pod
@@ -11,7 +11,7 @@ PDL::FFTW3 - PDL interface to the Fastest Fourier Transform in the West v3
11
# Basic functionality
12
my $x = sin( sequence(100) * 2.0 ) + 2.0 * cos( sequence(100) / 3.0 );
13
my $F = rfft1( $x );
14
- gplot( with => 'lines', inner($F,$F));
+ gplot( with => 'lines', $F->abs );
15
16
=====>
17
@@ -64,8 +64,7 @@ PDL::FFTW3 - PDL interface to the Fastest Fourier Transform in the West v3
64
65
# compute the correlation
66
my $F12 = rfft1( cat($y1,$y2) );
67
- my $corr = irfft1( Cmul( $F12(:,:,(1)),
68
- Cconj $F12(:,:,(0)) ) );
+ my $corr = irfft1( $F12(:,(1)) * $F12(:,(0))->conj );
69
# and find the peak
70
say maximum_ind($corr);
71
0 commit comments