Change implementation of to_row_vector for nalgebra (#34)

* Add failing test

* Change implementation of to_row_vector for nalgebra
This commit is contained in:
morenol
2020-11-25 14:39:02 -04:00
committed by GitHub
parent 9db993939e
commit 89a5136191
4 changed files with 23 additions and 4 deletions
+6
View File
@@ -563,6 +563,12 @@ mod tests {
);
}
#[test]
fn col_matrix_to_row_vector() {
let m: Array2<f64> = BaseMatrix::zeros(10, 1);
assert_eq!(m.to_row_vector().len(), 10)
}
#[test]
fn add_mut() {
let mut a1 = arr2(&[[1., 2., 3.], [4., 5., 6.]]);