MathTrigonometricNDArray::cosOn this pageNDArray::cospublic static function cos(NDArray|array|float|int $array): NDArray|float|int;Computes the element-wise cosine of an array, returning a new array with the cosine of each element.NotestipGPU SUPPORTEDThis operation is supported by GPU (VRAM) and contains a custom CUDA kernel.