28 #define WILDRIVER_VER_MAJOR 1 29 #define WILDRIVER_VER_MINOR 0 30 #define WILDRIVER_VER_SUBMINOR 0 40 #ifndef WILDRIVER_INDEX_TYPE 41 #define WILDRIVER_INDEX_TYPE size_t 46 #ifndef WILDRIVER_DIMENSION_TYPE 47 #define WILDRIVER_DIMENSION_TYPE uint32_t 52 #ifndef WILDRIVER_VALUE_TYPE 53 #define WILDRIVER_VALUE_TYPE double wildriver_vector_handle * wildriver_open_vector(char const *fname, int mode)
Open a vector for reading. The returned handle must be closed.
void * fd
Definition: wildriver.h:80
void wildriver_close_matrix(wildriver_matrix_handle *handle)
Close an open matrix.
wildriver_matrix_handle * wildriver_open_matrix(char const *fname, int mode)
Open a matrix for reading. The returned handle must be closed.
wildriver_dim_t nrows
Definition: wildriver.h:60
Definition: wildriver.h:94
int wildriver_save_matrix(wildriver_matrix_handle *handle, wildriver_ind_t const *rowptr, wildriver_dim_t const *rowind, wildriver_val_t const *rowval, double *progress)
Save the matrix after setting nrows, ncols, and nnz in the handle.
Definition: wildriver.h:89
wildriver_ind_t size
Definition: wildriver.h:79
wildriver_graph_handle * wildriver_open_graph(char const *fname, int mode)
Open a graph for reading. The returned handle must be closed.
#define WILDRIVER_INDEX_TYPE
Definition: wildriver.h:41
WILDRIVER_DIMENSION_TYPE wildriver_dim_t
Definition: wildriver.h:49
int nvwgt
Definition: wildriver.h:71
Definition: wildriver.h:88
int wildriver_read_graph(char const *fname, wildriver_dim_t *r_nvtxs, wildriver_ind_t *r_nedges, int *r_nvwgts, int *r_ewgts, wildriver_ind_t **r_xadj, wildriver_dim_t **r_adjncy, wildriver_val_t **r_vwgt, wildriver_val_t **r_adjwgt)
Read a graph from the given path into a CSR data-structure.
wildriver_ind_t nedges
Definition: wildriver.h:70
int wildriver_load_matrix(wildriver_matrix_handle *handle, wildriver_ind_t *rowptr, wildriver_dim_t *rowind, wildriver_val_t *rowval, double *progress)
Load the matrix into the given memory locations.
Definition: wildriver.h:67
WILDRIVER_VALUE_TYPE wildriver_val_t
Definition: wildriver.h:55
int mode
Definition: wildriver.h:68
Definition: wildriver.h:99
Definition: wildriver.h:58
int wildriver_read_matrix(char const *fname, wildriver_dim_t *r_nrows, wildriver_dim_t *r_ncols, wildriver_ind_t *r_nnz, wildriver_ind_t **r_rowptr, wildriver_dim_t **r_rowind, wildriver_val_t **r_rowval)
Read a matrix from the given path into a CSR data-structure.
int mode
Definition: wildriver.h:59
Definition: wildriver.h:85
wildriver_dim_t nvtxs
Definition: wildriver.h:69
Definition: wildriver.h:100
void wildriver_close_graph(wildriver_graph_handle *handle)
Close an open graph.
#define WILDRIVER_DIMENSION_TYPE
Definition: wildriver.h:47
int wildriver_write_graph(char const *fname, wildriver_dim_t nvtxs, wildriver_ind_t nedges, int nvwgts, wildriver_ind_t const *xadj, wildriver_dim_t const *adjncy, wildriver_val_t const *vwgt, wildriver_val_t const *adjwgt)
Write a graph to the given path from a CSR data-structure.
Definition: wildriver.h:90
int wildriver_save_vector(wildriver_vector_handle *handle, wildriver_val_t const *vals, double *progress)
Save a vactor from the given memory location.
wildriver_format_t
Definition: wildriver.h:84
WILDRIVER_INDEX_TYPE wildriver_ind_t
Definition: wildriver.h:43
void * fd
Definition: wildriver.h:63
Definition: wildriver.h:87
wildriver_dim_t ncols
Definition: wildriver.h:61
int ewgt
Definition: wildriver.h:72
void wildriver_close_vector(wildriver_vector_handle *handle)
Close an open vector.
Definition: wildriver.h:91
Definition: wildriver.h:92
int mode
Definition: wildriver.h:78
wildriver_mode_t
Definition: wildriver.h:98
int wildriver_load_vector(wildriver_vector_handle *handle, wildriver_val_t *vals, double *progress)
Load a vector into the given memory location.
void * fd
Definition: wildriver.h:73
Definition: wildriver.h:86
int wildriver_write_matrix(char const *fname, wildriver_dim_t nrows, wildriver_dim_t ncols, wildriver_ind_t nnz, wildriver_ind_t const *rowptr, wildriver_dim_t const *rowind, wildriver_val_t const *rowval)
Write a matrix file to the given path from a CSR data-structure.
Definition: wildriver.h:93
wildriver_ind_t nnz
Definition: wildriver.h:62
Definition: wildriver.h:77
int wildriver_load_graph(wildriver_graph_handle *handle, wildriver_ind_t *xadj, wildriver_dim_t *adjncy, wildriver_val_t *vwgt, wildriver_val_t *adjwgt, double *progress)
Load the graph into the given memory locations.
#define WILDRIVER_VALUE_TYPE
Definition: wildriver.h:53