Utility functions.
This file contains some utility functions, to copy the settings, to update the solver status, to print information and to time the algorithm.
Definition in file util.c.
#include "util.h"
#include "lin_alg.h"
#include "global_opts.h"
#include "string.h"
#include "types.h"
#include <stdio.h>
Go to the source code of this file.
Functions | |
void | c_strcpy (char dest[], const char source[]) |
Custom string copy to avoid string.h library. More... | |
QPALMSettings * | copy_settings (const QPALMSettings *settings) |
Copy settings creating a new settings structure. More... | |
void | update_status (QPALMInfo *info, c_int status_val) |
Update solver status (value and string). More... | |
void | print_header (void) |
Print the header with QPALM version number and fields. More... | |
void | print_iteration (c_int iter, QPALMWorkspace *work) |
Print information about the current iteration. More... | |
void | print_final_message (QPALMWorkspace *work) |
Print final message as a box with info. More... | |
void c_strcpy | ( | char | dest[], |
const char | source[] | ||
) |
QPALMSettings * copy_settings | ( | const QPALMSettings * | settings | ) |
void print_final_message | ( | QPALMWorkspace * | work | ) |
void print_header | ( | void | ) |
void print_iteration | ( | c_int | iter, |
QPALMWorkspace * | work | ||
) |