class InitSparseConnectivitySnippet::OneToOne

Initialises connectivity to a ‘one-to-one’ diagonal matrix.

#include <initSparseConnectivitySnippet.h>

class OneToOne: public InitSparseConnectivitySnippet::Base
{
public:
    // methods

    DECLARE_SNIPPET(
        InitSparseConnectivitySnippet::OneToOne,
        0
        );

    SET_ROW_BUILD_CODE("$(addSynapse, $(id_pre));\n""$(endRow);\n");
    SET_MAX_ROW_LENGTH(1);
    SET_MAX_COL_LENGTH(1);
};

Inherited Members

public:
    // typedefs

    typedef std::vector<std::string> StringVec;
    typedef std::vector<EGP> EGPVec;
    typedef std::vector<ParamVal> ParamValVec;
    typedef std::vector<DerivedParam> DerivedParamVec;
    typedef std::function<unsigned int(unsigned int, unsigned int, const std::vector<double>&)> CalcMaxLengthFunc;

    // structs

    struct DerivedParam;
    struct EGP;
    struct ParamVal;

    // methods

    virtual ~Base();
    virtual StringVec getParamNames() const;
    virtual DerivedParamVec getDerivedParams() const;
    virtual std::string getRowBuildCode() const;
    virtual ParamValVec getRowBuildStateVars() const;
    virtual CalcMaxLengthFunc getCalcMaxRowLengthFunc() const;
    virtual CalcMaxLengthFunc getCalcMaxColLengthFunc() const;
    virtual EGPVec getExtraGlobalParams() const;
    size_t getExtraGlobalParamIndex(const std::string& paramName) const;