Definition in file globals.h.
#include "cmdparam.h"
Include dependency graph for globals.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Compounds | |
struct | setfnobj2_fixed_arch_param_setfn2 |
struct | setfnobj2_read_only_param_setfn2 |
Defines | |
#define | NPES 1 |
Assume single-processor architecture if unknown. | |
#define | PARENTPE 0 |
Declare which PE is the master (the oldest PE) and alternate master (the youngest PE). | |
#define | YOUNGESTPE (NPEs-1) |
#define | AMPARENTPE (MyPE==PARENTPE) |
#define | AMYOUNGESTPE (MyPE==YOUNGESTPE) |
#define | PEISME(pe) ((pe)==MyPE) |
#define | DEATH_FLAG 1.0E-10 |
Marker for dead connection, usually stored as a negative value to distinguish it from live weights. | |
Functions | |
cmdstat | fixed_arch_param_setfn2 (const string &name, Typeless ¶m, const Typeless &newvalue) |
cmdstat | read_only_param_setfn2 (const string &name, Typeless ¶m, const Typeless &newvalue) |
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. | |
Variables | |
int | iteration |
int | presentation |
int | MyPE |
Unique number for this processor. | |
int | network_initialized |
Whether init_network has been called yet. | |
int | NPEs |
Number of processors total. | |
string | filebase |
|
Marker for dead connection, usually stored as a negative value to distinguish it from live weights. The value must be small (i.e. much less than 1.0, the total sum of weights), so that read-only routines can simply process values without first checking if they are dead. (This hack is an optimization that saves a little time when computing responses, but probably not enough time to be worth all the confusion it causes.) All code that ever modifies a weight must respect dead weights, i.e. not modify any weight whose current value is equal to or less than this value. Definition at line 42 of file globals.h. Referenced by LissomMap::clear_weights(), LissomMap::get_weights(), LissomMap::modify_weights(), LissomMap::prune(), LissomMap::prune_circular_aff_weights(), and LissomMap::prune_circular_lat_weights(). |