Skip to content

Instantly share code, notes, and snippets.

@AtheMathmo
Created April 17, 2016 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AtheMathmo/02895bdb6105d08c012ee4323d60da5a to your computer and use it in GitHub Desktop.
Save AtheMathmo/02895bdb6105d08c012ee4323d60da5a to your computer and use it in GitHub Desktop.
#[bench]
fn mat_blas_128_100(b: &mut Bencher) {
let a = OwnedArray::from_vec_dim((128, 100), vec![2f32; 12800]).unwrap();
let c = OwnedArray::from_vec_dim((100, 128), vec![3f32; 12800]).unwrap();
let a = a.view();
let c = c.view();
b.iter(|| a.dot(&c));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment