triton.language.cos

triton.language.cos(x, builder=None)

Computes the element-wise cosine of x

Parameters
  • x (Block) – the input values

  • builder (triton.ir.builder, optional from within JIT'ed functions) – IR builder to generate code into