Skip to content

Commit

Permalink
Revert formatting changes :(
Browse files Browse the repository at this point in the history
  • Loading branch information
Pencilcaseman committed Mar 30, 2024
1 parent 48c5ee2 commit 96aba35
Show file tree
Hide file tree
Showing 128 changed files with 4,038 additions and 2,021 deletions.
9 changes: 6 additions & 3 deletions benches/append.rs
Expand Up @@ -6,21 +6,24 @@ use test::Bencher;
use ndarray::prelude::*;

#[bench]
fn select_axis0(bench: &mut Bencher) {
fn select_axis0(bench: &mut Bencher)
{
let a = Array::<f32, _>::zeros((256, 256));
let selectable = vec![0, 1, 2, 0, 1, 3, 0, 4, 16, 32, 128, 147, 149, 220, 221, 255, 221, 0, 1];
bench.iter(|| a.select(Axis(0), &selectable));
}

#[bench]
fn select_axis1(bench: &mut Bencher) {
fn select_axis1(bench: &mut Bencher)
{
let a = Array::<f32, _>::zeros((256, 256));
let selectable = vec![0, 1, 2, 0, 1, 3, 0, 4, 16, 32, 128, 147, 149, 220, 221, 255, 221, 0, 1];
bench.iter(|| a.select(Axis(1), &selectable));
}

#[bench]
fn select_1d(bench: &mut Bencher) {
fn select_1d(bench: &mut Bencher)
{
let a = Array::<f32, _>::zeros(1024);
let mut selectable = (0..a.len()).step_by(17).collect::<Vec<_>>();
selectable.extend(selectable.clone().iter().rev());
Expand Down

0 comments on commit 96aba35

Please sign in to comment.