pub fn array2_to_mat<T>(arr: &Array2<T>) -> Mat<T>where T: Zeroable + Field + Clone,
Converts an ndarray Array2 to an OxiBLAS Mat.
This checks if the array is in column-major order for zero-copy conversion. If not, it performs a copy.