pub fn apply_elementwise<F>( a: &dyn ArrayProtocol, f: F, ) -> Result<Box<dyn ArrayProtocol>, OperationError>where F: Fn(f64) -> f64 + 'static,