NDArray::exp2
public static function exp2(NDArray|array|float|int $array): NDArray|float|int;
Computes the element-wise 2 raised to the power of an array, returning a new array with each element raised to the power of 2.
Notes
tip
GPU SUPPORTED
This operation is supported by GPU (VRAM) and contains a custom CUDA kernel.