pub type NonLinearity = dyn Fn(&Array, &Stream) -> Result<Array, Exception>;
Type alias for the non-linearity function.