2021-04-11 14:01:30 +08:00
|
|
|
use nalgebra_macros::matrix;
|
2021-04-11 23:29:33 +08:00
|
|
|
use nalgebra::Matrix3x2;
|
2021-04-11 14:01:30 +08:00
|
|
|
|
|
|
|
#[test]
|
2021-04-11 23:29:33 +08:00
|
|
|
fn matrix_basic_construction() {
|
|
|
|
let matrix: Matrix3x2<_> = matrix![ 1, 2;
|
|
|
|
3, 4;
|
|
|
|
5, 6 ];
|
|
|
|
assert_eq!(matrix, Matrix3x2::new(1, 2, 3, 4, 5, 6));
|
2021-04-11 14:01:30 +08:00
|
|
|
}
|