mlx_array_set_complex function

  1. @Native<Int Function(Pointer<mlx_array>, Float, Float)>(ffi.Pointer<mlx_array>, ffi.Float, ffi.Float)>()
int mlx_array_set_complex(
  1. Pointer<mlx_array> arr,
  2. double real_val,
  3. double imag_val
)

Set array to a complex scalar.

Implementation

@ffi.Native<ffi.Int Function(ffi.Pointer<mlx_array>, ffi.Float, ffi.Float)>()
external int mlx_array_set_complex(
  ffi.Pointer<mlx_array> arr,
  double real_val,
  double imag_val,
);