Function numcodecs_reinterpret::reinterpret_array

source ยท
pub fn reinterpret_array<T: Copy, U, S: Data<Elem = T>, D: Dimension>(
    array: ArrayBase<S, D>,
    reinterpret: impl Fn(T) -> U,
) -> Array<U, D>
Expand description

Reinterpret the data elements of the array using the provided reinterpret closure. The shape of the data is preserved.