1 2 3 4 5 6 7 8 9
use vector::Vector; use matrix::Matrix; #[test] fn test_as_column() { assert_eq!(Vector::from(&[1.0, 2.0, 3.0]).to_column(), Matrix::from(3, 1, &[1.0, 2.0, 3.0])); }