array_viewd_to_mat_ref

Function array_viewd_to_mat_ref 

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

Creates a MatRef view from an ndarray ArrayViewD.

ยงReturns

  • Some(MatRef) if the array is 2D and in column-major order
  • None if the array is not 2D or layout is incompatible