Skip to main content

NDArray::log

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

Calculates the element-wise natural logarithm of an array, returning a new array with the natural logarithm of each element.


Notes

tip

GPU SUPPORTED

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