GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
standardSubstitutions.h File Reference
#include <string>
#include "codeGenUtils.h"
#include "initSparseConnectivitySnippet.h"
#include "newNeuronModels.h"

Go to the source code of this file.

Classes

struct  NameIterCtx< Container >
 

Namespaces

 StandardSubstitutions
 

Typedefs

typedef NameIterCtx< NewModels::Base::StringPairVecVarNameIterCtx
 
typedef NameIterCtx< NewModels::Base::DerivedParamVecDerivedParamNameIterCtx
 
typedef NameIterCtx< NewModels::Base::StringPairVecExtraGlobalParamNameIterCtx
 

Functions

void StandardSubstitutions::postSynapseApplyInput (std::string &psCode, const SynapseGroup *sg, const NeuronGroup &ng, const VarNameIterCtx &nmVars, const DerivedParamNameIterCtx &nmDerivedParams, const ExtraGlobalParamNameIterCtx &nmExtraGlobalParams, const std::vector< FunctionTemplate > &functions, const std::string &ftype, const std::string &rng)
 Applies standard set of variable substitutions to postsynaptic model's "apply input" code. More...
 
void StandardSubstitutions::postSynapseDecay (std::string &pdCode, const SynapseGroup *sg, const NeuronGroup &ng, const VarNameIterCtx &nmVars, const DerivedParamNameIterCtx &nmDerivedParams, const ExtraGlobalParamNameIterCtx &nmExtraGlobalParams, const std::vector< FunctionTemplate > &functions, const std::string &ftype, const std::string &rng)
 Name of the RNG to use for any probabilistic operations. More...
 
void StandardSubstitutions::neuronThresholdCondition (std::string &thCode, const NeuronGroup &ng, const VarNameIterCtx &nmVars, const DerivedParamNameIterCtx &nmDerivedParams, const ExtraGlobalParamNameIterCtx &nmExtraGlobalParams, const std::vector< FunctionTemplate > &functions, const std::string &ftype, const std::string &rng)
 Applies standard set of variable substitutions to neuron model's "threshold condition" code. More...
 
void StandardSubstitutions::neuronSim (std::string &sCode, const NeuronGroup &ng, const VarNameIterCtx &nmVars, const DerivedParamNameIterCtx &nmDerivedParams, const ExtraGlobalParamNameIterCtx &nmExtraGlobalParams, const std::vector< FunctionTemplate > &functions, const std::string &ftype, const std::string &rng)
 
void StandardSubstitutions::neuronSpikeEventCondition (std::string &eCode, const NeuronGroup &ng, const VarNameIterCtx &nmVars, const ExtraGlobalParamNameIterCtx &nmExtraGlobalParams, const std::vector< FunctionTemplate > &functions, const std::string &ftype, const std::string &rng)
 
void StandardSubstitutions::neuronReset (std::string &rCode, const NeuronGroup &ng, const VarNameIterCtx &nmVars, const DerivedParamNameIterCtx &nmDerivedParams, const ExtraGlobalParamNameIterCtx &nmExtraGlobalParams, const std::vector< FunctionTemplate > &functions, const std::string &ftype, const std::string &rng)
 
void StandardSubstitutions::weightUpdateThresholdCondition (std::string &eCode, const SynapseGroup &sg, const DerivedParamNameIterCtx &wuDerivedParams, const ExtraGlobalParamNameIterCtx &wuExtraGlobalParams, const string &preIdx, const string &postIdx, const string &devPrefix, const std::vector< FunctionTemplate > &functions, const std::string &ftype, double dt)
 
void StandardSubstitutions::weightUpdateSim (std::string &wCode, const SynapseGroup &sg, const VarNameIterCtx &wuVars, const VarNameIterCtx &wuPreVars, const VarNameIterCtx &wuPostVars, const DerivedParamNameIterCtx &wuDerivedParams, const ExtraGlobalParamNameIterCtx &wuExtraGlobalParams, const string &preIdx, const string &postIdx, const string &devPrefix, const std::vector< FunctionTemplate > &functions, const std::string &ftype, double dt)
 
void StandardSubstitutions::weightUpdateDynamics (std::string &SDcode, const SynapseGroup *sg, const VarNameIterCtx &wuVars, const VarNameIterCtx &wuPreVars, const VarNameIterCtx &wuPostVars, const DerivedParamNameIterCtx &wuDerivedParams, const ExtraGlobalParamNameIterCtx &wuExtraGlobalParams, const string &preIdx, const string &postIdx, const string &devPrefix, const std::vector< FunctionTemplate > &functions, const std::string &ftype, double dt)
 
void StandardSubstitutions::weightUpdatePostLearn (std::string &code, const SynapseGroup *sg, const VarNameIterCtx &wuPreVars, const VarNameIterCtx &wuPostVars, const DerivedParamNameIterCtx &wuDerivedParams, const ExtraGlobalParamNameIterCtx &wuExtraGlobalParams, const string &preIdx, const string &postIdx, const string &devPrefix, const std::vector< FunctionTemplate > &functions, const std::string &ftype, double dt, const string &preVarPrefix="", const string &preVarSuffix="", const string &postVarPrefix="", const string &postVarSuffix="")
 suffix to be used for postsynaptic variable accesses - typically combined with prefix to wrap in function call such as __ldg(&XXX) More...
 
void StandardSubstitutions::weightUpdatePreSpike (std::string &code, const SynapseGroup *sg, const string &preIdx, const string &devPrefix, const std::vector< FunctionTemplate > &functions, const std::string &ftype)
 
void StandardSubstitutions::weightUpdatePostSpike (std::string &code, const SynapseGroup *sg, const string &postIdx, const string &devPrefix, const std::vector< FunctionTemplate > &functions, const std::string &ftype)
 
std::string StandardSubstitutions::initNeuronVariable (const NewModels::VarInit &varInit, const std::string &varName, const std::vector< FunctionTemplate > &functions, const std::string &idx, const std::string &ftype, const std::string &rng)
 
std::string StandardSubstitutions::initWeightUpdateVariable (const NewModels::VarInit &varInit, const std::string &varName, const std::vector< FunctionTemplate > &functions, const std::string &preIdx, const std::string &postIdx, const std::string &ftype, const std::string &rng)
 
std::string StandardSubstitutions::initSparseConnectivity (const SynapseGroup &sg, const std::string &addSynapseFunctionTemplate, unsigned int numTrgNeurons, const std::string &preIdx, const std::vector< FunctionTemplate > &functions, const std::string &ftype, const std::string &rng)
 
void StandardSubstitutions::currentSourceInjection (std::string &code, const CurrentSource *sc, const VarNameIterCtx &scmVars, const DerivedParamNameIterCtx &scmDerivedParams, const ExtraGlobalParamNameIterCtx &scmExtraGlobalParams, const std::vector< FunctionTemplate > &functions, const std::string &ftype, const std::string &rng)
 

Typedef Documentation

◆ DerivedParamNameIterCtx

◆ ExtraGlobalParamNameIterCtx

◆ VarNameIterCtx