Script.cos

Contents

Script.cos

Script.cos(x, *, out=None)

Compute the element-wise cosine.

Parameters:
  • x (RegisterTensor) – Input tensor (in radians).

  • out (RegisterTensor, optional) – Output tensor. If not provided, a new tensor is allocated.

Returns:

ret – Tensor with the same shape and dtype as x.

Return type:

RegisterTensor

Notes

  • Thread group: Can be executed by any sized thread group.