GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
sparseProjection.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------
2  Author: Thomas Nowotny
3 
4  Institute: Center for Computational Neuroscience and Robotics
5  University of Sussex
6  Falmer, Brighton BN1 9QJ, UK
7 
8  email to: T.Nowotny@sussex.ac.uk
9 
10  initial version: 2015-08-19
11 
12 --------------------------------------------------------------------------*/
13 #pragma once
14 
17  unsigned int *indInG;
18  unsigned int *ind;
19  unsigned int *preInd;
20  unsigned int *revIndInG;
21  unsigned int *revInd;
22  unsigned int *remap;
23  unsigned int connN;
24 };
25 
27 template<typename PostIndexType>
29  RaggedProjection(unsigned int maxRow, unsigned int maxCol)
30  : maxRowLength(maxRow), maxColLength(maxCol), synRemapSize(0)
31  {}
32 
34  const unsigned int maxRowLength;
35  const unsigned int maxColLength;
36 
38  unsigned int *rowLength;
39 
41  PostIndexType *ind;
42 
44  unsigned int *colLength;
45 
47  unsigned int *remap;
48 
50  unsigned int synRemapSize;
51 
53  unsigned int *synRemap;
54 };
PostIndexType * ind
Ragged row-major matrix, padded to maxRowLength containing indices of target neurons.
Definition: sparseProjection.h:41
const unsigned int maxColLength
Definition: sparseProjection.h:35
Row-major ordered sparse matrix structure in &#39;ragged&#39; format.
Definition: sparseProjection.h:28
unsigned int * rowLength
Length of each row of matrix.
Definition: sparseProjection.h:38
unsigned int connN
Definition: sparseProjection.h:23
unsigned int * colLength
Length of each column of matrix.
Definition: sparseProjection.h:44
unsigned int * ind
Definition: sparseProjection.h:18
unsigned int * synRemap
Indices back into ind for each synapse.
Definition: sparseProjection.h:53
const unsigned int maxRowLength
Maximum dimensions of matrices (used for sizing of ind and remap)
Definition: sparseProjection.h:34
unsigned int * revInd
Definition: sparseProjection.h:21
unsigned int * revIndInG
Definition: sparseProjection.h:20
unsigned int * indInG
Definition: sparseProjection.h:17
RaggedProjection(unsigned int maxRow, unsigned int maxCol)
Definition: sparseProjection.h:29
unsigned int * preInd
Definition: sparseProjection.h:19
class (struct) for defining a spars connectivity projection
Definition: sparseProjection.h:16
unsigned int * remap
Ragged column-major matrix, padded to maxColLength containing indices back into ind.
Definition: sparseProjection.h:47
unsigned int synRemapSize
Size of synRemap array (i.e. actual number of synapses)
Definition: sparseProjection.h:50
unsigned int * remap
Definition: sparseProjection.h:22