1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
//! The rusty-machine prelude.
//!
//! This module alleviates some common imports used within rusty-machine.

pub use linalg::{Matrix, MatrixSlice, MatrixSliceMut, BaseMatrix, BaseMatrixMut};
pub use linalg::Vector;
pub use linalg::Axes;

pub use learning::SupModel;
pub use learning::UnSupModel;

#[cfg(test)]
mod tests {
    use super::super::prelude::*;

    #[test]
    fn create_mat_from_prelude() {
        let _ = Matrix::new(2, 2, vec![4.0;4]);
    }
}