2017-08-03 01:37:44 +08:00
|
|
|
#![feature(test)]
|
2017-08-16 00:24:34 +08:00
|
|
|
#![allow(unused_macros)]
|
2017-08-03 01:37:44 +08:00
|
|
|
|
2018-02-02 19:26:35 +08:00
|
|
|
extern crate nalgebra as na;
|
2017-08-03 01:37:44 +08:00
|
|
|
extern crate rand;
|
2018-02-02 19:26:35 +08:00
|
|
|
extern crate test;
|
2017-08-03 01:37:44 +08:00
|
|
|
extern crate typenum;
|
|
|
|
|
2018-02-02 19:26:35 +08:00
|
|
|
use rand::{IsaacRng, Rng};
|
2017-08-03 01:37:44 +08:00
|
|
|
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())
|
|
|
|
}
|