GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
InitSparseConnectivitySnippet::Base Class Reference

#include <initSparseConnectivitySnippet.h>

Inheritance diagram for InitSparseConnectivitySnippet::Base:
Snippet::Base InitSparseConnectivitySnippet::Conv2D InitSparseConnectivitySnippet::FixedNumberPostWithReplacement InitSparseConnectivitySnippet::FixedNumberPreWithReplacement InitSparseConnectivitySnippet::FixedNumberTotalWithReplacement InitSparseConnectivitySnippet::FixedProbabilityBase InitSparseConnectivitySnippet::OneToOne InitSparseConnectivitySnippet::Uninitialised InitSparseConnectivitySnippet::FixedProbability InitSparseConnectivitySnippet::FixedProbabilityNoAutapse

Public Types

typedef std::function< unsigned int(unsigned int, unsigned int, const std::vector< double > &)> CalcMaxLengthFunc
 
typedef std::function< std::vector< unsigned int >const std::vector< double > &)> CalcKernelSizeFunc
 
- Public Types inherited from Snippet::Base
typedef std::vector< std::string > StringVec
 
typedef std::vector< EGPEGPVec
 
typedef std::vector< ParamValParamValVec
 
typedef std::vector< DerivedParamDerivedParamVec
 

Public Member Functions

virtual std::string getRowBuildCode () const
 
virtual ParamValVec getRowBuildStateVars () const
 
virtual std::string getColBuildCode () const
 
virtual ParamValVec getColBuildStateVars () const
 
virtual std::string getHostInitCode () const
 
virtual CalcMaxLengthFunc getCalcMaxRowLengthFunc () const
 Get function to calculate the maximum row length of this connector based on the parameters and the size of the pre and postsynaptic population. More...
 
virtual CalcMaxLengthFunc getCalcMaxColLengthFunc () const
 Get function to calculate the maximum column length of this connector based on the parameters and the size of the pre and postsynaptic population. More...
 
virtual CalcKernelSizeFunc getCalcKernelSizeFunc () const
 Get function to calculate kernel size required for this conenctor based on its parameters. More...
 
boost::uuids::detail::sha1::digest_type getHashDigest () const
 Update hash from snippet. More...
 
void validate () const
 Validate names of parameters etc. More...
 
- Public Member Functions inherited from Snippet::Base
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 &paramName) const
 Find the index of a named extra global parameter. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Snippet::Base
void updateHash (boost::uuids::detail::sha1 &hash) const
 
void validate () const
 Validate names of parameters etc. More...
 
- Static Protected Member Functions inherited from Snippet::Base
template<typename T >
static size_t getNamedVecIndex (const std::string &name, const std::vector< T > &vec)
 

Member Typedef Documentation

◆ CalcKernelSizeFunc

typedef std::function<std::vector<unsigned int>const std::vector<double> &)> InitSparseConnectivitySnippet::Base::CalcKernelSizeFunc

◆ CalcMaxLengthFunc

typedef std::function<unsigned int(unsigned int, unsigned int, const std::vector<double> &)> InitSparseConnectivitySnippet::Base::CalcMaxLengthFunc

Member Function Documentation

◆ getCalcKernelSizeFunc()

virtual CalcKernelSizeFunc InitSparseConnectivitySnippet::Base::getCalcKernelSizeFunc ( ) const
inlinevirtual

Get function to calculate kernel size required for this conenctor based on its parameters.

◆ getCalcMaxColLengthFunc()

virtual CalcMaxLengthFunc InitSparseConnectivitySnippet::Base::getCalcMaxColLengthFunc ( ) const
inlinevirtual

Get function to calculate the maximum column length of this connector based on the parameters and the size of the pre and postsynaptic population.

◆ getCalcMaxRowLengthFunc()

virtual CalcMaxLengthFunc InitSparseConnectivitySnippet::Base::getCalcMaxRowLengthFunc ( ) const
inlinevirtual

Get function to calculate the maximum row length of this connector based on the parameters and the size of the pre and postsynaptic population.

◆ getColBuildCode()

virtual std::string InitSparseConnectivitySnippet::Base::getColBuildCode ( ) const
inlinevirtual

◆ getColBuildStateVars()

virtual ParamValVec InitSparseConnectivitySnippet::Base::getColBuildStateVars ( ) const
inlinevirtual

◆ getHashDigest()

boost::uuids::detail::sha1::digest_type InitSparseConnectivitySnippet::Base::getHashDigest ( ) const

Update hash from snippet.

◆ getHostInitCode()

virtual std::string InitSparseConnectivitySnippet::Base::getHostInitCode ( ) const
inlinevirtual

◆ getRowBuildCode()

virtual std::string InitSparseConnectivitySnippet::Base::getRowBuildCode ( ) const
inlinevirtual

◆ getRowBuildStateVars()

virtual ParamValVec InitSparseConnectivitySnippet::Base::getRowBuildStateVars ( ) const
inlinevirtual

◆ validate()

void InitSparseConnectivitySnippet::Base::validate ( ) const

Validate names of parameters etc.


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