Skip to main content

NDArray::tanh

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

Calculates the element-wise hyperbolic tangent of an array, returning a new array with the hyperbolic tangent of each element.


Notes

tip

GPU SUPPORTED

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