Function zarrs::array::elements_to_ndarray
source · pub fn elements_to_ndarray<T>(
shape: &[u64],
elements: Vec<T>
) -> Result<ArrayD<T>, ArrayError>
Available on crate feature
ndarray
only.Expand description
Convert a vector of elements to an ndarray::ArrayD
.
§Errors
Returns an error if the length of elements
is not equal to the product of the components in shape
.