array_view_to_mat_ref

Function array_view_to_mat_ref 

Source
pub fn array_view_to_mat_ref<'a, T: Field>(
    arr: &'a ArrayView2<'a, T>,
) -> Option<MatRef<'a, T>>
Expand description

Creates a MatRef view from an ndarray ArrayView2.

§Returns

  • Some(MatRef) if the array is in column-major (Fortran) order
  • None if the array layout is incompatible

§Safety

The returned MatRef borrows from the ArrayView2.