mlx_array_set_float function

  1. @Native<Int Function(Pointer<mlx_array>, Float)>(ffi.Pointer<mlx_array>, ffi.Float)>()
int mlx_array_set_float(
  1. Pointer<mlx_array> arr,
  2. double val
)

Set array to a float scalar.

Implementation

@ffi.Native<ffi.Int Function(ffi.Pointer<mlx_array>, ffi.Float)>()
external int mlx_array_set_float(ffi.Pointer<mlx_array> arr, double val);