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

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

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

# std

[common]\
fun [std](std.md)(input: [Tensor](../Tensor/index.md), dims: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html) = longArrayOf(), correction: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) = 1, keepdim: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false): [Tensor](../Tensor/index.md)

`std(input: Tensor, dims: LongArray = longArrayOf(), correction: Long = 1L, keepdim: Boolean = false)`: the `std` operator. Standard deviation of `input` over `dims`, with Bessel correction. `correction` is the `c` above: 1 (the default) gives the sample standard deviation, 0 the population form.