Function linxal::util::internal::slice_and_layout_matching_mut
[−]
[src]
pub fn slice_and_layout_matching_mut<D, S: DataMut<Elem=D>>(mat: &mut ArrayBase<S, Ix2>, layout: Layout) -> Option<(&mut [S::Elem], Ixs)>
Return the slice, layout, and leading dimension of the matrix. If the matrix can be interpreted with multiple inputs, assume the previous one.
For LAPACKE methods, the memory layout does not need to be contiguous. We only required that either rows or columns are contiguous.
Returns None if the layout can't be matched.