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

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

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

# cross

[common]\
fun [cross](cross.md)(input: [Tensor](../Tensor/index.md), other: [Tensor](../Tensor/index.md), dim: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)? = null): [Tensor](../Tensor/index.md)

`cross(input: Tensor, other: Tensor, dim: Long? = null)`: the `cross` operator. 3-vector cross product along `dim`. Both operands share one shape; the `dim` axis (default: the LAST axis) must have size 3. The output mirrors the input shape.