Suppose I have an arbitrary array; any model of ownership, any number of dimensions, possibly non-contiguous, with strides in whatever order. How do I get an owned array in standard layout? And could it be better documented?
Based on the documentation of ArrayBase alone, it seems to me that the following is the only safe bet:
Array::from_shape_vec(arr.raw_dim(), arr.iter().cloned().collect())