mlx.core.meshgrid# meshgrid(*arrays: array, sparse: bool | None = False, indexing: str | None = 'xy', stream: None | Stream | Device = None) → array# Generate multidimensional coordinate grids from 1-D coordinate arrays 參數: *arrays (array) -- Input arrays. sparse (bool, optional) -- If True, a sparse grid is returned in which each output array has a single non-zero element. If False, a dense grid is returned. Defaults to False. indexing (str, optional) -- 輸出陣列的笛卡爾座標('xy')或矩陣('ij')索引方式。默認值為 'xy'。 回傳值: 輸出陣列。 回傳值型別: list(array)