20 lines
393 B
Rust
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())
|
|
}
|