[][src]Function ndarray::aview2

pub fn aview2<A, V: FixedInitializer<Elem = A>>(xs: &[V]) -> ArrayView2<'_, A>

Create a two-dimensional array view with elements borrowing xs.

Panics if the product of non-zero axis lengths overflows isize. (This can only occur when V is zero-sized.)