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

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

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

# rot90

[common]\
fun [rot90](rot90.md)(input: [Tensor](../Tensor/index.md), k: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) = 1, dims: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html) = longArrayOf(0, 1)): [Tensor](../Tensor/index.md)

`rot90(input: Tensor, k: Long = 1L, dims: LongArray = longArrayOf(0, 1))`: the `rot90` operator. Rotate the plane spanned by `dims` by `k` x 90 degrees (`k` is taken mod 4; odd rotations swap the two dims' extents). Default plane `{0, 1}`. Copies.