---
title: "cos"
sidebar_label: "cos"
description: "Kotlin binding reference: cos."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[cos](cos.md)

# cos

[common]\
fun [cos](cos.md)(input: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`cos(input: Tensor)`: the `cos` operator. Elementwise cosine. Value-domain violations follow IEEE semantics (NaN / ±inf in the result), never an error.