GeNN  2.2.3
GPU enhanced Neuronal Networks (GeNN)
classIzh Class Reference

#include <Izh_sparse_model.h>

Public Member Functions

 classIzh ()
 
 ~classIzh ()
 
void init (unsigned int)
 
void allocate_device_mem_patterns ()
 
void allocate_device_mem_input ()
 
void copy_device_mem_input ()
 
void read_sparsesyns_par (int, struct SparseProjection, FILE *, FILE *, FILE *, scalar *)
 Read sparse connectivity from a file. More...
 
void gen_alltoall_syns (scalar *, unsigned int, unsigned int, scalar)
 Generate random conductivity values for an all to all network. More...
 
void free_device_mem ()
 
void write_input_to_file (FILE *)
 
void read_input_values (FILE *)
 
void create_input_values ()
 
void run (double, unsigned int)
 
void getSpikesFromGPU ()
 Method for copying all spikes of the last time step from the GPU. More...
 
void getSpikeNumbersFromGPU ()
 Method for copying the number of spikes in all neuron populations that have occurred during the last time step. More...
 
void output_state (FILE *, unsigned int)
 
void output_spikes (FILE *, unsigned int)
 
void output_params (FILE *, FILE *)
 
void sum_spikes ()
 
void setInput (unsigned int)
 
void randomizeVar (scalar *, scalar, unsigned int)
 
void randomizeVarSq (scalar *, scalar, unsigned int)
 
void initializeAllVars (unsigned int)
 

Public Attributes

NNmodel model
 
scalarinput1
 
scalarinput2
 
scalard_input1
 
scalard_input2
 
unsigned int sumPExc
 
unsigned int sumPInh
 

Constructor & Destructor Documentation

classIzh::classIzh ( )
classIzh::~classIzh ( )

Member Function Documentation

void classIzh::allocate_device_mem_input ( )
void classIzh::allocate_device_mem_patterns ( )
void classIzh::copy_device_mem_input ( )
void classIzh::create_input_values ( )
void classIzh::free_device_mem ( )
void classIzh::gen_alltoall_syns ( scalar g,
unsigned int  nPre,
unsigned int  nPost,
scalar  gscale 
)

Generate random conductivity values for an all to all network.

Parameters
gthe resulting synaptic conductances
nPrenumber of pre-synaptic neurons
nPostnumber of post-synaptic neurons
gscalethe maximal conductance of generated synapses
void classIzh::getSpikeNumbersFromGPU ( )

Method for copying the number of spikes in all neuron populations that have occurred during the last time step.

This method is a simple wrapper for the convenience function copySpikeNFromDevice() provided by GeNN.

void classIzh::getSpikesFromGPU ( )

Method for copying all spikes of the last time step from the GPU.

This is a simple wrapper for the convenience function copySpikesFromDevice() which is provided by GeNN.

void classIzh::init ( unsigned int  which)
void classIzh::initializeAllVars ( unsigned int  which)
void classIzh::output_params ( FILE *  f,
FILE *  f2 
)
void classIzh::output_spikes ( FILE *  f,
unsigned int  which 
)
void classIzh::output_state ( FILE *  f,
unsigned int  which 
)
void classIzh::randomizeVar ( scalar Var,
scalar  strength,
unsigned int  neuronGrp 
)
void classIzh::randomizeVarSq ( scalar Var,
scalar  strength,
unsigned int  neuronGrp 
)
void classIzh::read_input_values ( FILE *  )
void classIzh::read_sparsesyns_par ( int  synInd,
struct SparseProjection  C,
FILE *  f_ind,
FILE *  f_indInG,
FILE *  f_g,
scalar g 
)

Read sparse connectivity from a file.

Parameters
synIndindex of the synapse population to be worked on
Ccontains teh arrays to be initialized from file
f_indfile pointer for the indices of post-synaptic neurons
f_indInGfile pointer for the summed post-synaptic neurons numbers
f_gFile handle for a file containing sparse conductivity values
garray to receive the conductance values
void classIzh::run ( double  runtime,
unsigned int  which 
)
void classIzh::setInput ( unsigned int  which)
void classIzh::sum_spikes ( )
void classIzh::write_input_to_file ( FILE *  f)

Member Data Documentation

scalar* classIzh::d_input1
scalar * classIzh::d_input2
scalar* classIzh::input1
scalar * classIzh::input2
NNmodel classIzh::model
unsigned int classIzh::sumPExc
unsigned int classIzh::sumPInh

The documentation for this class was generated from the following files: