![]() |
GeNN
4.0.0
GPU enhanced Neuronal Networks (GeNN)
|
#include <modelSpecInternal.h>
Additional Inherited Members | |
Public Types inherited from ModelSpec | |
| typedef std::map< std::string, NeuronGroupInternal >::value_type | NeuronGroupValueType |
| typedef std::map< std::string, SynapseGroupInternal >::value_type | SynapseGroupValueType |
Public Member Functions inherited from ModelSpec | |
| ModelSpec () | |
| ModelSpec (const ModelSpec &)=delete | |
| ModelSpec & | operator= (const ModelSpec &)=delete |
| ~ModelSpec () | |
| void | setName (const std::string &name) |
| Method to set the neuronal network model name. More... | |
| void | setPrecision (FloatType) |
| Set numerical precision for floating point. More... | |
| void | setTimePrecision (TimePrecision timePrecision) |
| Set numerical precision for time. More... | |
| void | setDT (double dt) |
| Set the integration step size of the model. More... | |
| void | setTiming (bool timingEnabled) |
| Set whether timers and timing commands are to be included. More... | |
| void | setSeed (unsigned int rngSeed) |
| Set the random seed (disables automatic seeding if argument not 0). More... | |
| void | setDefaultVarLocation (VarLocation loc) |
| What is the default location for model state variables? More... | |
| void | setDefaultExtraGlobalParamLocation (VarLocation loc) |
| What is the default location for model extra global parameters? More... | |
| void | setDefaultSparseConnectivityLocation (VarLocation loc) |
| What is the default location for sparse synaptic connectivity? More... | |
| void | setMergePostsynapticModels (bool merge) |
| Should compatible postsynaptic models and dendritic delay buffers be merged? More... | |
| const std::string & | getName () const |
| Gets the name of the neuronal network model. More... | |
| const std::string & | getPrecision () const |
| Gets the floating point numerical precision. More... | |
| std::string | getTimePrecision () const |
| Gets the floating point numerical precision used to represent time. More... | |
| double | getDT () const |
| Gets the model integration step size. More... | |
| unsigned int | getSeed () const |
| Get the random seed. More... | |
| bool | isTimingEnabled () const |
| Are timers and timing commands enabled. More... | |
| unsigned int | getNumLocalNeurons () const |
| How many neurons are simulated locally in this model. More... | |
| unsigned int | getNumRemoteNeurons () const |
| How many neurons are simulated remotely in this model. More... | |
| unsigned int | getNumNeurons () const |
| How many neurons make up the entire model. More... | |
| NeuronGroup * | findNeuronGroup (const std::string &name) |
| Find a neuron group by name. More... | |
| template<typename NeuronModel > | |
| NeuronGroup * | addNeuronPopulation (const std::string &name, unsigned int size, const NeuronModel *model, const typename NeuronModel::ParamValues ¶mValues, const typename NeuronModel::VarValues &varInitialisers, int hostID=0) |
| Adds a new neuron group to the model using a neuron model managed by the user. More... | |
| template<typename NeuronModel > | |
| NeuronGroup * | addNeuronPopulation (const std::string &name, unsigned int size, const typename NeuronModel::ParamValues ¶mValues, const typename NeuronModel::VarValues &varInitialisers, int hostID=0) |
| Adds a new neuron group to the model using a singleton neuron model created using standard DECLARE_MODEL and IMPLEMENT_MODEL macros. More... | |
| SynapseGroup * | findSynapseGroup (const std::string &name) |
| Find a synapse group by name. More... | |
| template<typename WeightUpdateModel , typename PostsynapticModel > | |
| SynapseGroup * | addSynapsePopulation (const std::string &name, SynapseMatrixType mtype, unsigned int delaySteps, const std::string &src, const std::string &trg, const WeightUpdateModel *wum, const typename WeightUpdateModel::ParamValues &weightParamValues, const typename WeightUpdateModel::VarValues &weightVarInitialisers, const typename WeightUpdateModel::PreVarValues &weightPreVarInitialisers, const typename WeightUpdateModel::PostVarValues &weightPostVarInitialisers, const PostsynapticModel *psm, const typename PostsynapticModel::ParamValues &postsynapticParamValues, const typename PostsynapticModel::VarValues &postsynapticVarInitialisers, const InitSparseConnectivitySnippet::Init &connectivityInitialiser=uninitialisedConnectivity()) |
| Adds a synapse population to the model using weight update and postsynaptic models managed by the user. More... | |
| template<typename WeightUpdateModel , typename PostsynapticModel > | |
| SynapseGroup * | addSynapsePopulation (const std::string &name, SynapseMatrixType mtype, unsigned int delaySteps, const std::string &src, const std::string &trg, const typename WeightUpdateModel::ParamValues &weightParamValues, const typename WeightUpdateModel::VarValues &weightVarInitialisers, const typename PostsynapticModel::ParamValues &postsynapticParamValues, const typename PostsynapticModel::VarValues &postsynapticVarInitialisers, const InitSparseConnectivitySnippet::Init &connectivityInitialiser=uninitialisedConnectivity()) |
| Adds a synapse population to the model using singleton weight update and postsynaptic models created using standard DECLARE_MODEL and IMPLEMENT_MODEL macros. More... | |
| template<typename WeightUpdateModel , typename PostsynapticModel > | |
| SynapseGroup * | addSynapsePopulation (const std::string &name, SynapseMatrixType mtype, unsigned int delaySteps, const std::string &src, const std::string &trg, const typename WeightUpdateModel::ParamValues &weightParamValues, const typename WeightUpdateModel::VarValues &weightVarInitialisers, const typename WeightUpdateModel::PreVarValues &weightPreVarInitialisers, const typename WeightUpdateModel::PostVarValues &weightPostVarInitialisers, const typename PostsynapticModel::ParamValues &postsynapticParamValues, const typename PostsynapticModel::VarValues &postsynapticVarInitialisers, const InitSparseConnectivitySnippet::Init &connectivityInitialiser=uninitialisedConnectivity()) |
| Adds a synapse population to the model using singleton weight update and postsynaptic models created using standard DECLARE_MODEL and IMPLEMENT_MODEL macros. More... | |
| CurrentSource * | findCurrentSource (const std::string &name) |
| Find a current source by name. More... | |
| template<typename CurrentSourceModel > | |
| CurrentSource * | addCurrentSource (const std::string ¤tSourceName, const CurrentSourceModel *model, const std::string &targetNeuronGroupName, const typename CurrentSourceModel::ParamValues ¶mValues, const typename CurrentSourceModel::VarValues &varInitialisers) |
| Adds a new current source to the model using a current source model managed by the user. More... | |
| template<typename CurrentSourceModel > | |
| CurrentSource * | addCurrentSource (const std::string ¤tSourceName, const std::string &targetNeuronGroupName, const typename CurrentSourceModel::ParamValues ¶mValues, const typename CurrentSourceModel::VarValues &varInitialisers) |
| Adds a new current source to the model using a singleton current source model created using standard DECLARE_MODEL and IMPLEMENT_MODEL macros. More... | |
Protected Member Functions inherited from ModelSpec | |
| void | finalize () |
| Finalise model. More... | |
| std::string | scalarExpr (double) const |
| Get the string literal that should be used to represent a value in the model's floating-point type. More... | |
| bool | zeroCopyInUse () const |
| Are any variables in any populations in this model using zero-copy memory? More... | |
| const std::map< std::string, NeuronGroupInternal > & | getLocalNeuronGroups () const |
| Get std::map containing local named NeuronGroup objects in model. More... | |
| const std::map< std::string, NeuronGroupInternal > & | getRemoteNeuronGroups () const |
| Get std::map containing remote named NeuronGroup objects in model. More... | |
| const std::map< std::string, SynapseGroupInternal > & | getLocalSynapseGroups () const |
| Get std::map containing local named SynapseGroup objects in model. More... | |
| const std::map< std::string, SynapseGroupInternal > & | getRemoteSynapseGroups () const |
| Get std::map containing remote named SynapseGroup objects in model. More... | |
| const std::map< std::string, CurrentSourceInternal > & | getLocalCurrentSources () const |
| Get std::map containing local named CurrentSource objects in model. More... | |
| const std::map< std::string, CurrentSourceInternal > & | getRemoteCurrentSources () const |
| Get std::map containing remote named CurrentSource objects in model. More... | |