Skip to main content

diffsol_host_array_alloc_vector

Function diffsol_host_array_alloc_vector 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn diffsol_host_array_alloc_vector( len: usize, dtype: i32, ) -> *mut HostArray
Expand description

Allocate a one-dimensional host array of the requested length and scalar type.

ยงSafety

The returned pointer must be freed with diffsol_host_array_free. dtype must be a valid scalar type enum defined by this library.