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

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

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

# neg

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

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