Function numcodecs_linear_quantize::quantize

source ·
pub fn quantize<T: Float + ConstZero + ConstOne + Serialize, Q: Unsigned, S: Data<Elem = T>, D: Dimension>(
    data: &ArrayBase<S, D>,
    quantize: impl Fn(T) -> Q,
) -> Result<Vec<Q>, LinearQuantizeCodecError>
Expand description

Linear-quantize the elements in the data array using the quantize closure.

§Errors

Errors with