QPALM 1.2.5
Proximal Augmented Lagrangian method for Quadratic Programs
Loading...
Searching...
No Matches
global_opts.c
Go to the documentation of this file.
1#include <qpalm/global_opts.h>
2
3void *qpalm_calloc(size_t num, size_t size) {
4 return ladel_calloc(num, size);
5}
6
7void *qpalm_malloc(size_t size) {
8 return ladel_malloc(size, 1);
9}
10
11void* qpalm_realloc(void *ptr, size_t size) {
12 ladel_int status;
13 return ladel_realloc(ptr, size, 1, &status);
14}
15
16void qpalm_free(void *ptr) {
17 ladel_free(ptr);
18}
19
20calloc_sig *qpalm_set_alloc_config_calloc(calloc_sig *calloc) {
21 return ladel_set_alloc_config_calloc(calloc);
22}
23malloc_sig *qpalm_set_alloc_config_malloc(malloc_sig *malloc) {
24 return ladel_set_alloc_config_malloc(malloc);
25}
26realloc_sig *qpalm_set_alloc_config_realloc(realloc_sig *realloc) {
27 return ladel_set_alloc_config_realloc(realloc);
28}
29free_sig *qpalm_set_alloc_config_free(free_sig *free) {
30 return ladel_set_alloc_config_free(free);
31}
32printf_sig *qpalm_set_print_config_printf(printf_sig *printf) {
33 return ladel_set_print_config_printf(printf);
34}
void qpalm_free(void *ptr)
Definition global_opts.c:16
calloc_sig * qpalm_set_alloc_config_calloc(calloc_sig *calloc)
Set the calloc function used by QPALM.
Definition global_opts.c:20
realloc_sig * qpalm_set_alloc_config_realloc(realloc_sig *realloc)
Set the realloc function used by QPALM.
Definition global_opts.c:26
void * qpalm_malloc(size_t size)
Definition global_opts.c:7
printf_sig * qpalm_set_print_config_printf(printf_sig *printf)
Set the printf function used by QPALM.
Definition global_opts.c:32
void * qpalm_calloc(size_t num, size_t size)
Definition global_opts.c:3
malloc_sig * qpalm_set_alloc_config_malloc(malloc_sig *malloc)
Set the malloc function used by QPALM.
Definition global_opts.c:23
free_sig * qpalm_set_alloc_config_free(free_sig *free)
Set the free function used by QPALM.
Definition global_opts.c:29
void * qpalm_realloc(void *ptr, size_t size)
Definition global_opts.c:11
Custom memory allocation, print and utility functions, and data types for floats and ints.