8404839233
The rand crate removed IsaacRng in the 0.5 -> 0.6 transition, so the benchmarks that use it haven't compiled since 9c37c51203
.
42 lines
805 B
Rust
42 lines
805 B
Rust
#![feature(test)]
|
|
#![allow(unused_macros)]
|
|
|
|
extern crate nalgebra as na;
|
|
extern crate rand;
|
|
extern crate rand_isaac;
|
|
extern crate test;
|
|
extern crate typenum;
|
|
|
|
#[macro_use]
|
|
extern crate criterion;
|
|
|
|
use na::DMatrix;
|
|
use rand::Rng;
|
|
use rand_isaac::IsaacRng;
|
|
|
|
pub mod core;
|
|
pub mod geometry;
|
|
pub mod linalg;
|
|
|
|
fn reproductible_dmatrix(nrows: usize, ncols: usize) -> DMatrix<f64> {
|
|
use rand::SeedableRng;
|
|
let mut rng = IsaacRng::seed_from_u64(0);
|
|
DMatrix::<f64>::from_fn(nrows, ncols, |_, _| rng.gen())
|
|
}
|
|
|
|
criterion_main!(
|
|
core::matrix,
|
|
core::vector,
|
|
geometry::quaternion,
|
|
linalg::bidiagonal,
|
|
linalg::cholesky,
|
|
linalg::full_piv_lu,
|
|
linalg::hessenberg,
|
|
linalg::lu,
|
|
linalg::qr,
|
|
linalg::schur,
|
|
linalg::solve,
|
|
linalg::svd,
|
|
linalg::symmetric_eigen,
|
|
);
|