GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
initToeplitzConnectivitySnippet.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  InitToeplitzConnectivitySnippet::Base
 
class  InitToeplitzConnectivitySnippet::Init
 
class  InitToeplitzConnectivitySnippet::Uninitialised
 Used to mark connectivity as uninitialised - no initialisation code will be run. More...
 
class  InitToeplitzConnectivitySnippet::Conv2D
 
class  InitToeplitzConnectivitySnippet::AvgPoolConv2D
 

Namespaces

 InitToeplitzConnectivitySnippet
 Base class for all toeplitz connectivity initialisation snippets.
 

Macros

#define SET_DIAGONAL_BUILD_CODE(CODE)   virtual std::string getDiagonalBuildCode() const override{ return CODE; }
 
#define SET_DIAGONAL_BUILD_STATE_VARS(...)   virtual ParamValVec getDiagonalBuildStateVars() const override{ return __VA_ARGS__; }
 
#define SET_CALC_MAX_ROW_LENGTH_FUNC(FUNC)   virtual CalcMaxLengthFunc getCalcMaxRowLengthFunc() 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; }; }
 

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_ROW_LENGTH_FUNC

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

◆ SET_DIAGONAL_BUILD_CODE

#define SET_DIAGONAL_BUILD_CODE (   CODE)    virtual std::string getDiagonalBuildCode() const override{ return CODE; }

◆ SET_DIAGONAL_BUILD_STATE_VARS

#define SET_DIAGONAL_BUILD_STATE_VARS (   ...)    virtual ParamValVec getDiagonalBuildStateVars() const override{ return __VA_ARGS__; }

◆ 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; }; }