mlx_array_set_float32 function

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

Set array to a float32 scalar.

Implementation

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