This file contains variables and parameters that would ordinarily be defined in some other file, but which make sense without that file, e.g. when just displaying saved data rather than training a full network. Most belong in kernel.c, and should be moved there.
Definition in file globals.c.
#include <string.h>
#include <math.h>
#include "ipc.h"
#include "cmdparam.h"
#include "globals.h"
#include "shuffledrand.h"
Include dependency graph for globals.c:
Go to the source code of this file.
Compounds | |
struct | cmdobj_measure_od_pref |
struct | cmdobj_measure_or_pref |
struct | cmdobj_OD_features |
struct | cmdobj_OR_features |
struct | cmdobj_plot_activity |
struct | cmdobj_plot_afferent_weight_map |
struct | cmdobj_plot_od_pref |
struct | cmdobj_plot_or_pref |
struct | cmdobj_plot_weights |
struct | cmdobj_save_params |
Functions | |
cmdstat | cmd_save_params (int argc, const char *argv[]) |
cmdstat | cmd_plot_weights (int argc, const char *argv[]) |
cmdstat | cmd_plot_activity (int argc, const char *argv[]) |
cmdstat | cmd_plot_afferent_weight_map (int argc, const char *argv[]) |
cmdstat | cmd_measure_od_pref (int argc, const char *argv[]) |
Currently supports measuring the entire cortex only, but can plot a smaller portion. | |
cmdstat | cmd_measure_or_pref (int argc, const char *argv[]) |
cmdstat | cmd_OD_features (int argc, const char *argv[]) |
cmdstat | cmd_OR_features (int argc, const char *argv[]) |
cmdstat | cmd_plot_od_pref (int argc, const char *argv[]) |
cmdstat | cmd_plot_or_pref (int argc, const char *argv[]) |
void | globals_init_hook (void) |
void | kernel_init_hook (void) |
Parameters used by kernel.c only; placed here to speed up compilation of kernel.c. | |
cmdstat | fixed_arch_param_setfn2 (const string &name, Typeless &existing, const Typeless &requested) |
cmdstat | read_only_param_setfn2 (const string &name, Typeless &, const Typeless &) |
Variables | |
string | filebase = "lissom" |
int | iteration = 0 |
int | presentation = 0 |
int | MyPE = 0 |
Unique number for this processor. | |
int | network_initialized = False |
Whether init_network has been called yet. | |
int | NPEs = 1 |
Number of processors total. |