Skip to content

Commit

Permalink
Comment out uneeded example code
Browse files Browse the repository at this point in the history
  • Loading branch information
smu160 committed Aug 15, 2024
1 parent ac5b29a commit e7dbd86
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn benchmark_r2c_vs_c2c(c: &mut Criterion) {
let mut output_re = vec![0.0; size];
let mut output_im = vec![0.0; size];
r2c_fft_f64(
black_box(&mut s_re),
black_box(&s_re),
black_box(&mut output_re),
black_box(&mut output_im),
);
Expand Down
32 changes: 16 additions & 16 deletions examples/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ use std::env;
use std::str::FromStr;

use phastft::fft::r2c_fft_f64;
use phastft::fft_64;
use phastft::fft_64_with_opts_and_plan;
use phastft::options::Options;
use phastft::planner::{Direction, Planner64};
use utilities::gen_random_signal;
// use phastft::fft_64;
// use phastft::fft_64_with_opts_and_plan;
// use phastft::options::Options;
// use phastft::planner::{Direction, Planner64};
// use utilities::gen_random_signal;

fn benchmark_fft_64(n: usize) {
let big_n = 1 << n;
let mut reals = vec![0.0; big_n];
let mut imags = vec![0.0; big_n];
gen_random_signal(&mut reals, &mut imags);

let planner = Planner64::new(reals.len(), Direction::Forward);
let opts = Options::guess_options(reals.len());

fft_64_with_opts_and_plan(&mut reals, &mut imags, &opts, &planner);
}
// fn benchmark_fft_64(n: usize) {
// let big_n = 1 << n;
// let mut reals = vec![0.0; big_n];
// let mut imags = vec![0.0; big_n];
// gen_random_signal(&mut reals, &mut imags);
//
// let planner = Planner64::new(reals.len(), Direction::Forward);
// let opts = Options::guess_options(reals.len());
//
// fft_64_with_opts_and_plan(&mut reals, &mut imags, &opts, &planner);
// }

fn benchmark_r2c_fft(n: usize) {
let big_n = 1 << n;
Expand Down

0 comments on commit e7dbd86

Please sign in to comment.