Skip to main content

NDArray::sqrt

public static function sqrt(NDArray|array|float|int $array): NDArray|float|int;

Calculates the element-wise square root of an array, returning a new array with the positive square root of each element.


Notes

tip

GPU SUPPORTED

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