Auryn simulator

Simulator for spiking neural networks with synaptic plasticity

User Tools

Site Tools


manual:wmat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
manual:wmat [2013/10/09 08:53] – Adds example matrix header zenkemanual:wmat [2013/11/01 15:40] – Added a headline zenke
Line 1: Line 1:
 ''wmat'' files are used to store weight matrices in the MatrixMarket format, which can be exchanged easily with MATLAB and other software ([[http://en.wikipedia.org/wiki/Matrix_Market_exchange_formats]]). Since in many cases connection matrices are sparse, Auryn uses the ''coordinate real'' format, which needs to be kept in row major order, since it directly maps Auryn's internal sparse matrix format [[SimpleMatrix]]. ''wmat'' files are used to store weight matrices in the MatrixMarket format, which can be exchanged easily with MATLAB and other software ([[http://en.wikipedia.org/wiki/Matrix_Market_exchange_formats]]). Since in many cases connection matrices are sparse, Auryn uses the ''coordinate real'' format, which needs to be kept in row major order, since it directly maps Auryn's internal sparse matrix format [[SimpleMatrix]].
 +
 +See also [[SparseConnection]].
 +
 +====== File structure ======
  
 The header of a typical weight matrix looks the following: The header of a typical weight matrix looks the following:
Line 18: Line 22:
 </code> </code>
 It contains some generic header lines and comments followed by the Connection name (which is not read upon load) and some additional information to identify from on how many ranks the weight matrix was residing. The first line without percent sign specifies the dimensionality followed by the number of nonzero elements. The latter is used by [[SimpleMatrix]] to reserve exactly the right amount of memory. After that, the existing connection elements are listed in the format: row (from) column (to) value. It contains some generic header lines and comments followed by the Connection name (which is not read upon load) and some additional information to identify from on how many ranks the weight matrix was residing. The first line without percent sign specifies the dimensionality followed by the number of nonzero elements. The latter is used by [[SimpleMatrix]] to reserve exactly the right amount of memory. After that, the existing connection elements are listed in the format: row (from) column (to) value.
 +
 +**Nota bene:** Cells in the wmat file are  indexed starting from 1 (unlike everywhere else in Auryn, where we adapt the C convention and start numbering arrays with 0).
 +
manual/wmat.txt · Last modified: 2014/12/02 10:03 by zenke