#include <amygdala/functionlookup.h>
Public Methods | |
FunctionLookup () | |
~FunctionLookup () | |
float * | GetLookupTable (Neuron *reqNrn, int tableIdx, int tableSize, int stepSize) |
Since a large number of Neurons in a given Network will have identical lookup tables, the tables can be shared to save space and improve caching performance. FunctionLookup manages the creation of tables by querying Neurons after a request for a table has been made. If a suitable table has already been filled, then a pointer will be returned. Otherwise, FunctionLookup will instruct the Neuron to fill a table and pass a pointer back.
The current method of filling lookup tables is convoluted and limits their use to the Neuron classes. Amygdala 0.4 will feature a revised FunctionLookup API that simplifies the process and allows any class to request a table.
|
This will check to see if a table with the given parameters (and some additional parameters in reqNrn) already exists. If a matching table does not exist, a new one will be created.
|