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 orderNoneif the array is not 2D or layout is incompatible