Function tract_core::internal::tract_ndarray::prelude::aview2[][src]

pub fn aview2<A, V>(xs: &[V]) -> ArrayBase<ViewRepr<&A>, Dim<[usize; 2]>> where
    V: FixedInitializer<Elem = 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.)