mlx_random_laplace function

int mlx_random_laplace(
  1. Pointer<mlx_array> res,
  2. Pointer<Int> shape,
  3. int shape_num,
  4. mlx_dtype_ dtype,
  5. double loc,
  6. double scale,
  7. mlx_array key,
  8. mlx_stream s,
)

Implementation

int mlx_random_laplace(
  ffi.Pointer<mlx_array> res,
  ffi.Pointer<ffi.Int> shape,
  int shape_num,
  mlx_dtype_ dtype,
  double loc,
  double scale,
  mlx_array key,
  mlx_stream s,
) =>
    _mlx_random_laplace(res, shape, shape_num, dtype.value, loc, scale, key, s);