__neg__

array.__neg__() array

Evaluates -self_i for each element of an array instance.

Note

For signed integer data types, the numerical negative of the minimum representable integer is implementation-dependent.

Parameters

self (array) – array instance. Should have a numeric data type.

Returns

out (array) – an array containing the evaluated result for each element in self. The returned array must have a data type determined by Type Promotion Rules.

Note

Element-wise results must equal the results returned by the equivalent element-wise function negative().