82#define LADEL_ATTR_PRINTF_LIKE __attribute__((format(printf, 1, 2)))
84#define LADEL_ATTR_PRINTF_LIKE
97#define ladel_print ladel_get_print_config_printf()
Constants and macros used in LADEL.
Routines to copy matrices and vectors.
ladel_work * ladel_workspace_free(ladel_work *work)
Free a LADEL workspace.
void * ladel_calloc(ladel_int n, size_t size)
Version of calloc (for mex or for regular C).
void *() malloc_sig(size_t)
malloc_sig * ladel_set_alloc_config_malloc(malloc_sig *malloc)
Set the malloc function used by LADEL.
calloc_sig * ladel_set_alloc_config_calloc(calloc_sig *calloc)
Set the calloc function used by LADEL.
#define LADEL_ATTR_PRINTF_LIKE
ladel_factor * ladel_factor_free(ladel_factor *LD)
Free a factor.
ladel_symbolics * ladel_symbolics_free(ladel_symbolics *sym)
Free a symbolics struct (and return NULL).
printf_sig * ladel_set_print_config_printf(printf_sig *printf)
Set the printf function used by LADEL.
realloc_sig * ladel_set_alloc_config_realloc(realloc_sig *realloc)
Set the realloc function used by LADEL.
void *() calloc_sig(size_t, size_t)
LADEL_ATTR_PRINTF_LIKE int() printf_sig(const char *,...)
ladel_sparse_matrix * ladel_sparse_alloc(ladel_int nrow, ladel_int ncol, ladel_int nzmax, ladel_int symmetry, ladel_int values, ladel_int nz)
Allocate a sparse matrix.
void ladel_set_set(ladel_set *set, ladel_int *set_vals, ladel_int size_set, ladel_int max_size_set)
Fill in the fields of the given set.
ladel_symbolics * ladel_symbolics_alloc(ladel_int ncol)
Allocate a symbolics struct.
ladel_set * ladel_set_allocate(ladel_int max_size)
Allocate a set struct.
void * ladel_realloc(void *p, ladel_int n, size_t size, ladel_int *status)
Version of realloc (for mex or for regular C).
void * ladel_malloc(ladel_int n, size_t size)
Version of malloc (for mex or for regular C).
ladel_sparse_matrix * ladel_sparse_alloc_empty(ladel_int nrow, ladel_int ncol, ladel_int symmetry, ladel_int values, ladel_int nz)
Allocate a sparse empty matrix (used in special cases).
void * ladel_free(void *p)
Version of free (for mex or for regular C).
ladel_work * ladel_workspace_allocate(ladel_int ncol)
Allocate a LADEL workspace.
ladel_factor * ladel_factor_allocate(ladel_symbolics *sym)
Allocate a factors struct.
printf_sig * ladel_get_print_config_printf(void)
Get the printf function used by LADEL.
free_sig * ladel_set_alloc_config_free(free_sig *free)
Set the free function used by LADEL.
void *() realloc_sig(void *, size_t)
ladel_set * ladel_set_free(ladel_set *set)
Free a set.
ladel_int ladel_sparse_realloc(ladel_sparse_matrix *M, ladel_int nzmax)
Reallocate a sparse matrix with a new size.
ladel_sparse_matrix * ladel_sparse_free(ladel_sparse_matrix *M)
Free a sparse matrix (and return NULL).
Structures and types used in LADEL routines.
int64_t ladel_int
Type for integer numbers (default: int64_t)
Sparse matrix in compressed column storage.
Factors of an factorization.
Workspace required for various routines in LADEL.