Back to NDArray Operations
pow
Element-wise power. Raises each element of a to the integer power n.
Syntax
pow(a: NDArray, n: Int64) → r
Backends
TypeScriptnumwa
Description
Element-wise power. Raises each element of a to the integer power n.
Parameters
| Name | Description |
|---|---|
| a | Base array |
| n | Integer exponent |
Returns
NDArray with each element raised to the power n