logo

Function ndarray::aview2

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

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.)