pub unsafe extern "C" fn matd_create_dataf(
    rows: c_int,
    cols: c_int,
    data: *const f32
) -> *mut matd_t
Expand description

Creates a double matrix with the given number of rows and columns (or a scalar in the case where rows=0 and/or cols=0). All data elements will be initialized using the supplied array of float data, which must contain at least rowscols elements, arranged in row-major order (i.e. index = rowncols + col). It is the caller’s responsibility to call matd_destroy() on the returned matrix.