Wrapper around legacy weight update models stored in weightUpdateModels array of weightUpdateModel objects.
More...
#include <newWeightUpdateModels.h>
Wrapper around legacy weight update models stored in weightUpdateModels array of weightUpdateModel objects.
◆ LegacyWrapper()
WeightUpdateModels::LegacyWrapper::LegacyWrapper |
( |
unsigned int |
legacyTypeIndex | ) |
|
|
inline |
◆ getEventCode()
std::string WeightUpdateModels::LegacyWrapper::getEventCode |
( |
| ) |
const |
|
virtual |
Gets code run when events (all the instances where event threshold condition is met) are received.
◆ getEventThresholdConditionCode()
std::string WeightUpdateModels::LegacyWrapper::getEventThresholdConditionCode |
( |
| ) |
const |
|
virtual |
Gets codes to test for events.
◆ getExtraGlobalParams()
Gets names and types (as strings) of additional per-population parameters for the weight update model.
◆ getLearnPostCode()
std::string WeightUpdateModels::LegacyWrapper::getLearnPostCode |
( |
| ) |
const |
|
virtual |
Gets code to include in the learnSynapsesPost kernel/function.
For examples when modelling STDP, this is where the effect of postsynaptic spikes which occur after presynaptic spikes are applied.
◆ getLearnPostSupportCode()
std::string WeightUpdateModels::LegacyWrapper::getLearnPostSupportCode |
( |
| ) |
const |
|
virtual |
Gets support code to be made available within learnSynapsesPost kernel/function.
Preprocessor defines are also allowed if appropriately safeguarded against multiple definition by using ifndef; functions should be declared as "__host__ __device__" to be available for both GPU and CPU versions.
◆ getSimCode()
std::string WeightUpdateModels::LegacyWrapper::getSimCode |
( |
| ) |
const |
|
virtual |
Gets simulation code run when 'true' spikes are received.
◆ getSimSupportCode()
std::string WeightUpdateModels::LegacyWrapper::getSimSupportCode |
( |
| ) |
const |
|
virtual |
Gets support code to be made available within the synapse kernel/function.
This is intended to contain user defined device functions that are used in the weight update code. Preprocessor defines are also allowed if appropriately safeguarded against multiple definition by using ifndef; functions should be declared as "__host__ __device__" to be available for both GPU and CPU versions; note that this support code is available to sim, event threshold and event code
◆ getSynapseDynamicsCode()
std::string WeightUpdateModels::LegacyWrapper::getSynapseDynamicsCode |
( |
| ) |
const |
|
virtual |
Gets code for synapse dynamics which are independent of spike detection.
◆ getSynapseDynamicsSuppportCode()
std::string WeightUpdateModels::LegacyWrapper::getSynapseDynamicsSuppportCode |
( |
| ) |
const |
|
virtual |
Gets support code to be made available within the synapse dynamics kernel/function.
Preprocessor defines are also allowed if appropriately safeguarded against multiple definition by using ifndef; functions should be declared as "__host__ __device__" to be available for both GPU and CPU versions.
◆ isPostSpikeTimeRequired()
bool WeightUpdateModels::LegacyWrapper::isPostSpikeTimeRequired |
( |
| ) |
const |
|
virtual |
Whether postsynaptic spike times are needed or not.
◆ isPreSpikeTimeRequired()
bool WeightUpdateModels::LegacyWrapper::isPreSpikeTimeRequired |
( |
| ) |
const |
|
virtual |
Whether presynaptic spike times are needed or not.
The documentation for this class was generated from the following files: