Skip to content

WMJi/nest

 
 

Repository files navigation

nest

NEST, the neural network simulator, forked

API documentation

http://synergetics.github.io/nest

Creating a new model

For an example, see models/simple.h and models/simple.cpp

Other modifications include:

  1. Register the new model with nest, in modelsmodule.cpp
#include "simple.h"

// ...

register_model<simple>(net_,             "simple");
  1. Add parameter names

nest_names.h

    extern const Name spikes;

    extern const Name thresh;

nest_names.cpp

    const Name spikes("spikes");

    const Name thresh("thresh");
  1. Add entries in the makefiles

Makefile.am

    simple.h simple.cpp

Makefile.in

libmodelsmodule_la-simple.lo \

# ...

simple.h simple.cpp\

# ...

@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmodelsmodule_la-simple.Plo@am__quote@

# ...

libmodelsmodule_la-simple.lo: simple.cpp
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmodelsmodule_la_CXXFLAGS) $(CXXFLAGS) -MT libmodelsmodule_la-simple.lo -MD -MP -MF $(DEPDIR)/libmodelsmodule_la-simple.Tpo -c -o libmodelsmodule_la-simple.lo `test -f 'simple.cpp' || echo '$(srcdir)/'`simple.cpp
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmodelsmodule_la-simple.Tpo $(DEPDIR)/libmodelsmodule_la-simple.Plo
@AMDEP_TRUE@@am__fastdepCXX_FALSE@  $(AM_V_CXX)source='simple.cpp' object='libmodelsmodule_la-simple.lo' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@  DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@  $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmodelsmodule_la_CXXFLAGS) $(CXXFLAGS) -c -o libmodelsmodule_la-simple.lo `test -f 'simple.cpp' || echo '$(srcdir)/'`simple.cpp

About

NEST, the neural network simulator, forked

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 62.9%
  • Shell 12.5%
  • Python 11.9%
  • Emacs Lisp 4.8%
  • C 3.2%
  • Makefile 2.4%
  • Other 2.3%