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

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

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

# pairwiseDistance

[common]\
fun [pairwiseDistance](pairwiseDistance.md)(x1: [Tensor](../Tensor/index.md), x2: [Tensor](../Tensor/index.md), p: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = 2.0, eps: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, keepdim: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false): [Tensor](../Tensor/index.md)

`pairwiseDistance(x1: Tensor, x2: Tensor, p: Double = 2.0, eps: Double? = null, keepdim: Boolean = false)`: the `pairwise_distance` operator. Row-wise L_p distance between two batched vectors. Reduces the LAST axis; leading dims broadcast.