GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
InitSparseConnectivitySnippet::OneToOne Class Reference

Initialises connectivity to a 'one-to-one' diagonal matrix. More...

#include <initSparseConnectivitySnippet.h>

Inheritance diagram for InitSparseConnectivitySnippet::OneToOne:
InitSparseConnectivitySnippet::Base Snippet::Base

Public Member Functions

 DECLARE_SNIPPET (InitSparseConnectivitySnippet::OneToOne, 0)
 
 SET_ROW_BUILD_CODE ("$(addSynapse, $(id_pre));\ "$(endRow);\")
 
 SET_CALC_MAX_ROW_LENGTH_FUNC ([](unsigned int numPre, unsigned int numPost, const std::vector< double > &) { assert(numPre==numPost);return 1;})
 
 SET_CALC_MAX_COL_LENGTH_FUNC ([](unsigned int numPre, unsigned int numPost, const std::vector< double > &) { assert(numPre==numPost);return 1;})
 
- Public Member Functions inherited from InitSparseConnectivitySnippet::Base
virtual std::string getRowBuildCode () const
 
virtual NameTypeValVec getRowBuildStateVars () 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 StringPairVec getExtraGlobalParams () const
 
- 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
 

Additional Inherited Members

- Public Types inherited from InitSparseConnectivitySnippet::Base
typedef std::function< unsigned int(unsigned int, unsigned int, const std::vector< double > &)> CalcMaxLengthFunc
 
- Public Types inherited from Snippet::Base
typedef std::function< double(const std::vector< double > &, double)> DerivedParamFunc
 
typedef std::vector< std::string > StringVec
 
typedef std::vector< std::pair< std::string, std::string > > StringPairVec
 
typedef std::vector< std::pair< std::string, std::pair< std::string, double > > > NameTypeValVec
 
typedef std::vector< std::pair< std::string, DerivedParamFunc > > DerivedParamVec
 

Detailed Description

Initialises connectivity to a 'one-to-one' diagonal matrix.

Member Function Documentation

◆ DECLARE_SNIPPET()

InitSparseConnectivitySnippet::OneToOne::DECLARE_SNIPPET ( InitSparseConnectivitySnippet::OneToOne  ,
 
)

◆ SET_CALC_MAX_COL_LENGTH_FUNC()

InitSparseConnectivitySnippet::OneToOne::SET_CALC_MAX_COL_LENGTH_FUNC ( [] (unsigned int numPre, unsigned int numPost, const std::vector< double > &) { assert(numPre==numPost);return 1;}  )

◆ SET_CALC_MAX_ROW_LENGTH_FUNC()

InitSparseConnectivitySnippet::OneToOne::SET_CALC_MAX_ROW_LENGTH_FUNC ( [] (unsigned int numPre, unsigned int numPost, const std::vector< double > &) { assert(numPre==numPost);return 1;}  )

◆ SET_ROW_BUILD_CODE()

InitSparseConnectivitySnippet::OneToOne::SET_ROW_BUILD_CODE ( "$(addSynapse, $(id_pre));\$(endRow);\  )

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