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