GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
initSparseConnectivitySnippet.h File Reference
#include <functional>
#include <vector>
#include <cassert>
#include <cmath>
#include "binomial.h"
#include "snippet.h"

Go to the source code of this file.

Classes

class  InitSparseConnectivitySnippet::Base
 
class  InitSparseConnectivitySnippet::Init
 
class  InitSparseConnectivitySnippet::Uninitialised
 Used to mark connectivity as uninitialised - no initialisation code will be run. More...
 
class  InitSparseConnectivitySnippet::OneToOne
 Initialises connectivity to a 'one-to-one' diagonal matrix. More...
 
class  InitSparseConnectivitySnippet::FixedProbabilityBase
 
class  InitSparseConnectivitySnippet::FixedProbability
 
class  InitSparseConnectivitySnippet::FixedProbabilityNoAutapse
 
class  InitSparseConnectivitySnippet::FixedNumberPostWithReplacement
 Initialises connectivity with a fixed number of random synapses per row. More...
 
class  InitSparseConnectivitySnippet::FixedNumberTotalWithReplacement
 
class  InitSparseConnectivitySnippet::FixedNumberPreWithReplacement
 Initialises connectivity with a fixed number of random synapses per column. More...
 
class  InitSparseConnectivitySnippet::Conv2D
 

Namespaces

 InitSparseConnectivitySnippet
 Base class for all sparse connectivity initialisation snippets.
 

Macros

#define SET_ROW_BUILD_CODE(CODE)   virtual std::string getRowBuildCode() const override{ return CODE; }
 
#define SET_ROW_BUILD_STATE_VARS(...)   virtual ParamValVec getRowBuildStateVars() const override{ return __VA_ARGS__; }
 
#define SET_COL_BUILD_CODE(CODE)   virtual std::string getColBuildCode() const override{ return CODE; }
 
#define SET_COL_BUILD_STATE_VARS(...)   virtual ParamValVec getColBuildStateVars() const override{ return __VA_ARGS__; }
 
#define SET_HOST_INIT_CODE(CODE)   virtual std::string getHostInitCode() const override{ return CODE; }
 
#define SET_CALC_MAX_ROW_LENGTH_FUNC(FUNC)   virtual CalcMaxLengthFunc getCalcMaxRowLengthFunc() const override{ return FUNC; }
 
#define SET_CALC_MAX_COL_LENGTH_FUNC(FUNC)   virtual CalcMaxLengthFunc getCalcMaxColLengthFunc() const override{ return FUNC; }
 
#define SET_CALC_KERNEL_SIZE_FUNC(...)   virtual CalcKernelSizeFunc getCalcKernelSizeFunc() const override{ return __VA_ARGS__; }
 
#define SET_MAX_ROW_LENGTH(MAX_ROW_LENGTH)   virtual CalcMaxLengthFunc getCalcMaxRowLengthFunc() const override{ return [](unsigned int, unsigned int, const std::vector<double> &){ return MAX_ROW_LENGTH; }; }
 
#define SET_MAX_COL_LENGTH(MAX_COL_LENGTH)   virtual CalcMaxLengthFunc getCalcMaxColLengthFunc() const override{ return [](unsigned int, unsigned int, const std::vector<double> &){ return MAX_COL_LENGTH; }; }
 

Macro Definition Documentation

◆ SET_CALC_KERNEL_SIZE_FUNC

#define SET_CALC_KERNEL_SIZE_FUNC (   ...)    virtual CalcKernelSizeFunc getCalcKernelSizeFunc() const override{ return __VA_ARGS__; }

◆ SET_CALC_MAX_COL_LENGTH_FUNC

#define SET_CALC_MAX_COL_LENGTH_FUNC (   FUNC)    virtual CalcMaxLengthFunc getCalcMaxColLengthFunc() const override{ return FUNC; }

◆ SET_CALC_MAX_ROW_LENGTH_FUNC

#define SET_CALC_MAX_ROW_LENGTH_FUNC (   FUNC)    virtual CalcMaxLengthFunc getCalcMaxRowLengthFunc() const override{ return FUNC; }

◆ SET_COL_BUILD_CODE

#define SET_COL_BUILD_CODE (   CODE)    virtual std::string getColBuildCode() const override{ return CODE; }

◆ SET_COL_BUILD_STATE_VARS

#define SET_COL_BUILD_STATE_VARS (   ...)    virtual ParamValVec getColBuildStateVars() const override{ return __VA_ARGS__; }

◆ SET_HOST_INIT_CODE

#define SET_HOST_INIT_CODE (   CODE)    virtual std::string getHostInitCode() const override{ return CODE; }

◆ SET_MAX_COL_LENGTH

#define SET_MAX_COL_LENGTH (   MAX_COL_LENGTH)    virtual CalcMaxLengthFunc getCalcMaxColLengthFunc() const override{ return [](unsigned int, unsigned int, const std::vector<double> &){ return MAX_COL_LENGTH; }; }

◆ SET_MAX_ROW_LENGTH

#define SET_MAX_ROW_LENGTH (   MAX_ROW_LENGTH)    virtual CalcMaxLengthFunc getCalcMaxRowLengthFunc() const override{ return [](unsigned int, unsigned int, const std::vector<double> &){ return MAX_ROW_LENGTH; }; }

◆ SET_ROW_BUILD_CODE

#define SET_ROW_BUILD_CODE (   CODE)    virtual std::string getRowBuildCode() const override{ return CODE; }

◆ SET_ROW_BUILD_STATE_VARS

#define SET_ROW_BUILD_STATE_VARS (   ...)    virtual ParamValVec getRowBuildStateVars() const override{ return __VA_ARGS__; }