18 #ifdef TRACE_MEMORY_ALLOCS
42 void init_shogun(
void (*print_message)(FILE* target,
const char* str),
43 void (*print_warning)(FILE* target,
const char* str),
44 void (*print_error)(FILE* target,
const char* str),
45 void (*cancel_computations)(
bool &delayed,
bool &immediately))
55 #ifdef TRACE_MEMORY_ALLOCS
74 fprintf(target,
"%s", str);
85 #ifdef TRACE_MEMORY_ALLOCS
void init_shogun(void(*print_message)(FILE *target, const char *str), void(*print_warning)(FILE *target, const char *str), void(*print_error)(FILE *target, const char *str), void(*cancel_computations)(bool &delayed, bool &immediately))
void set_global_version(Version *version)
void set_global_math(CMath *math)
void(* sg_print_warning)(FILE *target, const char *str)
function called to print warning messages
void init_shogun_with_defaults()
CMath * get_global_math()
void(* sg_print_error)(FILE *target, const char *str)
function called to print error messages
Parallel * get_global_parallel()
void(* sg_cancel_computations)(bool &delayed, bool &immediately)
function called to cancel things
Class Version provides version information.
void set_global_parallel(Parallel *parallel)
void(* sg_print_message)(FILE *target, const char *str)
function called to print normal messages
Class Parallel provides helper functions for multithreading.
Version * get_global_version()
Class which collects generic mathematical functions.
void sg_global_print_default(FILE *target, const char *str)
void set_global_io(SGIO *io)
Class SGIO, used to do input output operations throughout shogun.