Back to NDArray Operations
neg
Element-wise negation.
Syntax
neg(a: NDArray) → r
Backends
TypeScriptnumwa
Description
Element-wise negation.
Parameters
| Name | Description |
|---|---|
| a | Input array |
Returns
NDArray with each element negated