pub fn array2_into_mat<T>(arr: Array2<T>) -> Mat<T>Expand description
Converts an ndarray Array2 to an OxiBLAS Mat, consuming the array.
§Notes
Despite taking arr by value, this still copies every element: it
is not more efficient than array2_to_mat, for any layout of arr.
Mat’s backing AlignedVec is always a fresh, cache-line-aligned
allocation (potentially with column padding for SIMD alignment) built
through a different allocator path than ndarray’s Vec, so arr’s
buffer can never be moved into the returned Mat. arr is consumed
(and dropped) purely so callers don’t have to hold onto it after this
call; prefer array2_to_mat if you still need arr afterwards.