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

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

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

# meshgrid

[common]\
fun [meshgrid](meshgrid.md)(tensors: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[Tensor](../Tensor/index.md)&gt;, indexing: [MeshgridIndexing](../MeshgridIndexing/index.md) = MeshgridIndexing.IJ): [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[Tensor](../Tensor/index.md)&gt;

`meshgrid(tensors: List<Tensor>, indexing: MeshgridIndexing = MeshgridIndexing.IJ)`: the `meshgrid` operator. Coordinate grids from 1-D axes: N inputs produce N N-D tensors, each input broadcast over every other axis, the NumPy `meshgrid`. With `MeshgridIndexing::IJ` (matrix indexing, the default) the output shapes follow the input order `[len0, len1, ..]`; `XY` (Cartesian) swaps the first two axes.