pub unsafe extern "C" fn mlx_array_new_data_managed_payload(
data: *mut c_void,
shape: *const c_int,
dim: c_int,
dtype: mlx_dtype,
payload: *mut c_void,
dtor: Option<unsafe extern "C" fn(arg1: *mut c_void)>,
) -> mlx_arrayExpand description
New array from existing buffer.
@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.
@param payload Payload pointer passed to the dtor callback instead of
data.
@param dtor Callback for when the buffer is no longer needed.