Skip to main content

//clika-runtime/io.clika.runtime/Ops/meshgrid

meshgrid

[common]
fun meshgrid(tensors: List<Tensor>, indexing: MeshgridIndexing = MeshgridIndexing.IJ): List<Tensor>

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.