Function arrow::compute::kernels::numeric::neg

source ·
pub fn neg(array: &dyn Array) -> Result<Arc<dyn Array>, ArrowError>
Expand description

Negates each element of array, returning an error on overflow

Note: negation of unsigned arrays is not supported and will return in an error, for wrapping unsigned negation consider using neg_wrapping