nalgebra/benches/lib.rs
Sébastien Crozet 662cc9cd7f Run rust fmt.
2018-02-03 13:59:05 +01:00

20 lines
393 B
Rust

#![feature(test)]
#![allow(unused_macros)]
extern crate nalgebra as na;
extern crate rand;
extern crate test;
extern crate typenum;
use rand::{IsaacRng, Rng};
use na::DMatrix;
mod core;
mod linalg;
mod geometry;
fn reproductible_dmatrix(nrows: usize, ncols: usize) -> DMatrix<f64> {
let mut rng = IsaacRng::new_unseeded();
DMatrix::<f64>::from_fn(nrows, ncols, |_, _| rng.gen())
}