19 #ifdef TRACE_MEMORY_ALLOCS 44 void init_shogun(
void (*print_message)(FILE* target,
const char* str),
45 void (*print_warning)(FILE* target,
const char* str),
46 void (*print_error)(FILE* target,
const char* str),
47 void (*cancel_computations)(
bool &delayed,
bool &immediately))
59 #ifdef TRACE_MEMORY_ALLOCS 79 fprintf(target,
"%s", str);
90 #ifdef TRACE_MEMORY_ALLOCS 126 sg_parallel=parallel;
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
the class CMap, a map based on the hash-table. w: http://en.wikipedia.org/wiki/Hash_table ...
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
: Pseudo random number geneartor
Class Parallel provides helper functions for multithreading.
all of classes and functions are contained in the shogun namespace
Version * get_global_version()
Class which collects generic mathematical functions.
void set_global_rand(CRandom *rand)
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.
CRandom * get_global_rand()