Add test for empty matrix multiplication.
This commit is contained in:
parent
6fa096e199
commit
5cb4d5f83c
|
@ -0,0 +1,9 @@
|
||||||
|
use na::{DMatrix, DVector};
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn empty_mul() {
|
||||||
|
// Issue #644
|
||||||
|
let m = DMatrix::<f32>::zeros(8, 0);
|
||||||
|
let v = DVector::<f32>::zeros(0);
|
||||||
|
assert_eq!(m * v, DVector::zeros(8));
|
||||||
|
}
|
|
@ -8,6 +8,7 @@ mod matrix_slice;
|
||||||
#[cfg(feature = "mint")]
|
#[cfg(feature = "mint")]
|
||||||
mod mint;
|
mod mint;
|
||||||
mod serde;
|
mod serde;
|
||||||
|
mod empty;
|
||||||
|
|
||||||
|
|
||||||
#[cfg(feature = "arbitrary")]
|
#[cfg(feature = "arbitrary")]
|
||||||
|
|
Loading…
Reference in New Issue