pub fn array_like<S, A, D, Sh>(
    arr: &ArrayBase<S, D>,
    shape: Sh,
    elem: A
) -> Array<A, D>where
    S: Data<Elem = A>,
    A: Clone,
    D: Dimension,
    Sh: ShapeBuilder<Dim = D>,
Expand description

Utilitary function that returns a new n-dimensional array of dimension shape with the same datatype and memory order as the input arr.