pub fn matrix_operation_unchecked(
op: MatrixOperation,
m1: MatrixRef<'_, i32>,
m2: MatrixRef<'_, i32>,
) -> Matrix<i32>
Expand description
SAFETY:
This function assumes m1.len()
== m2.len()
as well as m1[0].len()
== m2[0].len()
.
If you wish to instead handle the errors in the case you’re unsure if the lengths are the same
then please use fn matrix_operation()
and handle the Result<T, E>
appropriately.