GeNN
4.9.0
GPU enhanced Neuronal Networks (GeNN)
|
Base class for all code snippets. More...
#include <snippet.h>
Classes | |
struct | DerivedParam |
A derived parameter has a name and a function for obtaining its value. More... | |
struct | EGP |
An extra global parameter has a name and a type. More... | |
struct | ParamVal |
Additional input variables, row state variables and other things have a name, a type and an initial value. More... | |
Public Types | |
typedef std::vector< std::string > | StringVec |
typedef std::vector< EGP > | EGPVec |
typedef std::vector< ParamVal > | ParamValVec |
typedef std::vector< DerivedParam > | DerivedParamVec |
Public Member Functions | |
virtual | ~Base () |
virtual StringVec | getParamNames () const |
Gets names of of (independent) model parameters. More... | |
virtual DerivedParamVec | getDerivedParams () const |
virtual EGPVec | getExtraGlobalParams () const |
size_t | getExtraGlobalParamIndex (const std::string ¶mName) const |
Find the index of a named extra global parameter. More... | |
Protected Member Functions | |
void | updateHash (boost::uuids::detail::sha1 &hash) const |
void | validate () const |
Validate names of parameters etc. More... | |
Static Protected Member Functions | |
template<typename T > | |
static size_t | getNamedVecIndex (const std::string &name, const std::vector< T > &vec) |
Base class for all code snippets.
typedef std::vector<DerivedParam> Snippet::Base::DerivedParamVec |
typedef std::vector<EGP> Snippet::Base::EGPVec |
typedef std::vector<ParamVal> Snippet::Base::ParamValVec |
typedef std::vector<std::string> Snippet::Base::StringVec |
|
inlinevirtual |
|
inlinevirtual |
Gets names of derived model parameters and the function objects to call to Calculate their value from a vector of model parameter values
Reimplemented in NeuronModels::PoissonNew, WeightUpdateModels::PiecewiseSTDP, NeuronModels::LIF, InitVarSnippet::NormalClippedDelay, InitToeplitzConnectivitySnippet::AvgPoolConv2D, NeuronModels::RulkovMap, InitSparseConnectivitySnippet::FixedProbabilityBase, CurrentSourceModels::PoissonExp, InitToeplitzConnectivitySnippet::Conv2D, PostsynapticModels::ExpCond, and PostsynapticModels::ExpCurr.
|
inline |
Find the index of a named extra global parameter.
|
inlinevirtual |
Gets names and types (as strings) of additional per-population parameters for the snippet
Reimplemented in NeuronModels::Poisson, InitSparseConnectivitySnippet::FixedNumberTotalWithReplacement, and NeuronModels::SpikeSourceArray.
|
inlinestaticprotected |
|
inlinevirtual |
Gets names of of (independent) model parameters.
Reimplemented in NeuronModels::TraubMilesNStep, NeuronModels::TraubMiles, InitSparseConnectivitySnippet::Conv2D, NeuronModels::PoissonNew, InitSparseConnectivitySnippet::FixedNumberPreWithReplacement, NeuronModels::Poisson, WeightUpdateModels::PiecewiseSTDP, InitSparseConnectivitySnippet::FixedNumberTotalWithReplacement, InitSparseConnectivitySnippet::FixedNumberPostWithReplacement, WeightUpdateModels::StaticGraded, NeuronModels::LIF, InitVarSnippet::Binomial, InitVarSnippet::Gamma, NeuronModels::IzhikevichVariable, InitVarSnippet::Exponential, NeuronModels::Izhikevich, InitVarSnippet::NormalClippedDelay, InitToeplitzConnectivitySnippet::AvgPoolConv2D, InitVarSnippet::NormalClipped, InitSparseConnectivitySnippet::FixedProbabilityBase, NeuronModels::RulkovMap, InitVarSnippet::Normal, CurrentSourceModels::PoissonExp, InitToeplitzConnectivitySnippet::Conv2D, InitVarSnippet::Uniform, PostsynapticModels::ExpCond, CurrentSourceModels::GaussianNoise, InitVarSnippet::Constant, CurrentSourceModels::DC, and PostsynapticModels::ExpCurr.
|
inlineprotected |
|
inlineprotected |
Validate names of parameters etc.