GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
customUpdateModels.h File Reference
#include "gennExport.h"
#include "models.h"

Go to the source code of this file.

Classes

class  CustomUpdateModels::Base
 Base class for all current source models. More...
 
class  CustomUpdateModels::Transpose
 Minimal custom update model for calculating tranpose. More...
 

Namespaces

 CustomUpdateModels
 

Macros

#define DECLARE_CUSTOM_UPDATE_MODEL_EGP_REF(TYPE, NUM_PARAMS, NUM_VARS, NUM_VAR_REFS, NUM_EGP_REFS)
 
#define DECLARE_CUSTOM_UPDATE_MODEL(TYPE, NUM_PARAMS, NUM_VARS, NUM_VAR_REFS)   DECLARE_CUSTOM_UPDATE_MODEL_EGP_REF(TYPE, NUM_PARAMS, NUM_VARS, NUM_VAR_REFS, 0)
 
#define SET_VAR_REFS(...)   virtual VarRefVec getVarRefs() const override{ return __VA_ARGS__; }
 
#define SET_EXTRA_GLOBAL_PARAM_REFS(...)   virtual EGPRefVec getExtraGlobalParamRefs() const override{ return __VA_ARGS__; }
 
#define SET_UPDATE_CODE(UPDATE_CODE)   virtual std::string getUpdateCode() const override{ return UPDATE_CODE; }
 

Macro Definition Documentation

◆ DECLARE_CUSTOM_UPDATE_MODEL

#define DECLARE_CUSTOM_UPDATE_MODEL (   TYPE,
  NUM_PARAMS,
  NUM_VARS,
  NUM_VAR_REFS 
)    DECLARE_CUSTOM_UPDATE_MODEL_EGP_REF(TYPE, NUM_PARAMS, NUM_VARS, NUM_VAR_REFS, 0)

◆ DECLARE_CUSTOM_UPDATE_MODEL_EGP_REF

#define DECLARE_CUSTOM_UPDATE_MODEL_EGP_REF (   TYPE,
  NUM_PARAMS,
  NUM_VARS,
  NUM_VAR_REFS,
  NUM_EGP_REFS 
)
Value:
DECLARE_SNIPPET(TYPE, NUM_PARAMS); \
#define TYPE(T)
Definition: backendBase.cc:14
#define DECLARE_SNIPPET(TYPE, NUM_PARAMS)
Definition: snippet.h:19
Definition: snippet.h:48

◆ SET_EXTRA_GLOBAL_PARAM_REFS

#define SET_EXTRA_GLOBAL_PARAM_REFS (   ...)    virtual EGPRefVec getExtraGlobalParamRefs() const override{ return __VA_ARGS__; }

◆ SET_UPDATE_CODE

#define SET_UPDATE_CODE (   UPDATE_CODE)    virtual std::string getUpdateCode() const override{ return UPDATE_CODE; }

◆ SET_VAR_REFS

#define SET_VAR_REFS (   ...)    virtual VarRefVec getVarRefs() const override{ return __VA_ARGS__; }