pub fn neg(array: &dyn Array) -> Box<dyn Array>
Available on crate feature compute_arithmetics only.
Expand description

Negates an Array.

Panic

This function panics iff either

  • the opertion is not supported for the logical type (use can_neg to check)
  • the operation overflows