Skip to content

Commit

Permalink
simplify ternary op
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Mar 22, 2021
1 parent 3693618 commit ced1da9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions FFTW3_header_include.pm
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ EOF

# I now have the arguments and the plan. Go!
my $internal_function =
$is_real_fft ?
( $do_inverse_fft ? "PDL::__irfft$rank" : "PDL::__rfft$rank") : "PDL::__fft$rank";
!$is_real_fft ? "PDL::__fft$rank" :
$do_inverse_fft ? "PDL::__irfft$rank" :
"PDL::__rfft$rank";
eval { no strict 'refs'; $internal_function->( $in, $out, $plan ) };
barf $@ if $@;

Expand Down

0 comments on commit ced1da9

Please sign in to comment.