mlx_astype function

int mlx_astype(
  1. Pointer<mlx_array> res,
  2. mlx_array a,
  3. mlx_dtype_ dtype,
  4. mlx_stream s,
)

Implementation

int mlx_astype(
  ffi.Pointer<mlx_array> res,
  mlx_array a,
  mlx_dtype_ dtype,
  mlx_stream s,
) => _mlx_astype(res, a, dtype.value, s);