pub unsafe extern "C" fn mlx_array_set_data(
arr: *mut mlx_array,
data: *const c_void,
shape: *const c_int,
dim: c_int,
dtype: mlx_dtype,
) -> c_intExpand description
Set array to specified data and shape.
@param arr Destination array.
@param data A buffer which will be copied.
@param shape Shape of the array.
@param dim Number of dimensions (size of shape).
@param dtype Type of array elements.