Skip to main content

NDArray::pow

public static function pow(NDArray|array|float|int $a, NDArray|array|float|int $b): NDArray|float|int;

Raises each element of an array $a to a specified power $b and returns a new array containing the result.


Notes

tip

GPU SUPPORTED

This operation is supported by GPU (VRAM) and contains a custom CUDA kernel.