35 #if !(defined _WIN32 || defined _WIN64 || defined _WINDLL || defined __APPLE__)
36 #ifdef _POSIX_C_SOURCE
37 #undef _POSIX_C_SOURCE
39 #define _POSIX_C_SOURCE 200112L
49 #elif(defined _WIN32 || defined _WIN64 || defined _WINDLL)
59 #elif(defined __APPLE__)
61 #include <mach/mach_time.h>
66 mach_timebase_info_data_t tinfo;
349 const char *
RESTRICT __format, ...);
struct timespec toc
Definition: util.h:79
Terminating information.
Definition: scs.h:539
#define RESTRICT
Definition: glbopts.h:44
void scs_set_default_settings(ScsData *RESTRICT data)
Sets the settings to certain default values.
struct timespec tic
Definition: util.h:78
SCS timer structure.
Definition: util.h:77
scs_float scs_toc_quiet(ScsTimer *timer)
Stops the timer.
void scs_free_cone(ScsCone *RESTRICT cone)
void scs_set_anderson_settings(ScsData *RESTRICT data, scs_int anderson_memory)
void scs_tic(ScsTimer *timer)
Starts the timer.
int scs_int
Definition: glbopts.h:96
scs_float scs_strtoc(char *str, ScsTimer *timer)
Stops the timer and prints a custom message.
void scs_print_data(const ScsData *data)
Prints the content of a Data object.
void scs_free_data_cone(ScsData *RESTRICT d, ScsCone *RESTRICT k)
Frees the memory allocate of a Data and a Cone object.
Cone structure.
Definition: cones.h:48
void scs_set_tolerance(ScsData *RESTRICT data, scs_float tolerance)
void scs_free_info(ScsInfo *RESTRICT info)
Frees the memory allocated for an Info object.
void scs_print_array(const scs_float *RESTRICT arr, scs_int n, const char *RESTRICT name)
Prints an array.
void scs_free_data(ScsData *RESTRICT data)
void scs_set_restarted_broyden_settings(ScsData *RESTRICT data, scs_int broyden_memory)
double scs_float
Definition: glbopts.h:100
struct scs_timer ScsTimer
Definition: util.h:88
int scs_special_print(scs_int print_mode, FILE *RESTRICT __stream, const char *RESTRICT __format,...)
Custom print function for SCS.
void scs_print_cone_data(const ScsCone *RESTRICT cone)
Prints the content of a Cone object.
struct containing problem data
Definition: scs.h:254
Workspace for SCS.
Definition: scs.h:75
void scs_free_sol(ScsSolution *RESTRICT sol)
Frees the memory allocated for a Sol object.
void scs_set_memory(ScsData *RESTRICT data, scs_int memory)
void scs_print_work(const ScsWork *work)
Prints the content of a Work object.
scs_float scs_toc(ScsTimer *timer)
Stops the timer.
Primal-dual solution arrays.
Definition: scs.h:518