pub fn print_matrix(matrix: &DMatrix<f32>) {
    for i in 0..matrix.shape().0 {
        let mut row = vec![0.0; matrix.shape().1];
        for j in 0..matrix.shape().1 {
            row[j] = matrix[(i, j)];
        }
        println!("{:?}", row);
    }
}
/// Prints matrix to console in an easy to read way
Prints matrix to console in an easy to read way
Prints matrix to console in an easy to read way
pub fn print_matrix(matrix: &DMatrix<f32>) {
    for i in 0..matrix.shape().0 {
        let mut row = vec![0.0; matrix.shape().1];
        for j in 0..matrix.shape().1 {
            row[j] = matrix[(i, j)];
        }
        println!("{:?}", row);
    }
}
pub fn print_matrix ( matrix : & DMatrix < f32 > ) { for i in 0 .. matrix . shape ( ) . 0 { let mut row = vec ! [ 0.0 matrix shape ( ) 1 ] ; for j in 0 .. matrix . shape ( ) . 1 { row [ j ] = matrix [ ( i , j ) ] ; } println ! ( " " row ) ; } }
Prints matrix to console in an easy to read way
Prints matrix to console in an easy to read way
matrix
&DMatrix<f32>
matrix
&DMatrix<f32>