GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
neuronModel Class Reference

class for specifying a neuron model. More...

#include <neuronModels.h>

Public Member Functions

 neuronModel ()
 Constructor for neuronModel objects. More...
 
 ~neuronModel ()
 Destructor for neuronModel objects. More...
 

Public Attributes

string simCode
 Code that defines the execution of one timestep of integration of the neuron model The code will refer to for the value of the variable with name "NN". It needs to refer to the predefined variable "ISYN", i.e. contain , if it is to receive input. More...
 
string thresholdConditionCode
 Code evaluating to a bool (e.g. "V > 20") that defines the condition for a true spike in the described neuron model. More...
 
string resetCode
 Code that defines the reset action taken after a spike occurred. This can be empty. More...
 
string supportCode
 Support code is made available within the neuron kernel definition file and is meant to contain user defined device functions that are used in the neuron codes. 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. More...
 
vector< string > varNames
 Names of the variables in the neuron model. More...
 
vector< string > tmpVarNames
 never used More...
 
vector< string > varTypes
 Types of the variable named above, e.g. "float". Names and types are matched by their order of occurrence in the vector. More...
 
vector< string > tmpVarTypes
 never used More...
 
vector< string > pNames
 Names of (independent) parameters of the model. More...
 
vector< string > dpNames
 Names of dependent parameters of the model. The dependent parameters are functions of independent parameters that enter into the neuron model. To avoid unecessary computational overhead, these parameters are calculated at compile time and inserted as explicit values into the generated code. See method NNmodel::initDerivedNeuronPara for how this is done. More...
 
vector< string > extraGlobalNeuronKernelParameters
 Additional parameter in the neuron kernel; it is translated to a population specific name but otherwise assumed to be one parameter per population rather than per neuron. More...
 
vector< string > extraGlobalNeuronKernelParameterTypes
 Additional parameters in the neuron kernel; they are translated to a population specific name but otherwise assumed to be one parameter per population rather than per neuron. More...
 
dpclassdps
 Derived parameters. More...
 

Detailed Description

class for specifying a neuron model.

Constructor & Destructor Documentation

◆ neuronModel()

neuronModel::neuronModel ( )

Constructor for neuronModel objects.

◆ ~neuronModel()

neuronModel::~neuronModel ( )

Destructor for neuronModel objects.

Member Data Documentation

◆ dpNames

vector<string> neuronModel::dpNames

Names of dependent parameters of the model. The dependent parameters are functions of independent parameters that enter into the neuron model. To avoid unecessary computational overhead, these parameters are calculated at compile time and inserted as explicit values into the generated code. See method NNmodel::initDerivedNeuronPara for how this is done.

◆ dps

dpclass* neuronModel::dps

Derived parameters.

◆ extraGlobalNeuronKernelParameters

vector<string> neuronModel::extraGlobalNeuronKernelParameters

Additional parameter in the neuron kernel; it is translated to a population specific name but otherwise assumed to be one parameter per population rather than per neuron.

◆ extraGlobalNeuronKernelParameterTypes

vector<string> neuronModel::extraGlobalNeuronKernelParameterTypes

Additional parameters in the neuron kernel; they are translated to a population specific name but otherwise assumed to be one parameter per population rather than per neuron.

◆ pNames

vector<string> neuronModel::pNames

Names of (independent) parameters of the model.

◆ resetCode

string neuronModel::resetCode

Code that defines the reset action taken after a spike occurred. This can be empty.

◆ simCode

string neuronModel::simCode

Code that defines the execution of one timestep of integration of the neuron model The code will refer to for the value of the variable with name "NN". It needs to refer to the predefined variable "ISYN", i.e. contain , if it is to receive input.

◆ supportCode

string neuronModel::supportCode

Support code is made available within the neuron kernel definition file and is meant to contain user defined device functions that are used in the neuron codes. 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.

◆ thresholdConditionCode

string neuronModel::thresholdConditionCode

Code evaluating to a bool (e.g. "V > 20") that defines the condition for a true spike in the described neuron model.

◆ tmpVarNames

vector<string> neuronModel::tmpVarNames

never used

◆ tmpVarTypes

vector<string> neuronModel::tmpVarTypes

never used

◆ varNames

vector<string> neuronModel::varNames

Names of the variables in the neuron model.

◆ varTypes

vector<string> neuronModel::varTypes

Types of the variable named above, e.g. "float". Names and types are matched by their order of occurrence in the vector.


The documentation for this class was generated from the following files: