diff --git a/src/matrix/mat.rs b/src/matrix/mat.rs index 2330da7..3bd9ed9 100644 --- a/src/matrix/mat.rs +++ b/src/matrix/mat.rs @@ -357,9 +357,9 @@ impl Broadcastable for T { impl Broadcastable for Matrix { fn to_vec(&self, rows: usize, cols: usize) -> Vec { - assert_eq!(self.rows, rows, "row count mismatch"); - assert_eq!(self.cols, cols, "col count mismatch"); - self.data.clone() + assert_eq!(self.rows, rows, "row count mismatch in broadcast"); + assert_eq!(self.cols, cols, "col count mismatch in broadcast"); + self.data.clone() // Clone the data for the broadcasted vec } }