manual:wmat
Differences
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
manual:wmat [2013/10/09 08:41] – created zenke | manual:wmat [2013/10/09 08:53] – Adds example matrix header zenke | ||
---|---|---|---|
Line 1: | Line 1: | ||
'' | '' | ||
+ | |||
+ | The header of a typical weight matrix looks the following: | ||
+ | < | ||
+ | %%MatrixMarket matrix coordinate real general | ||
+ | % Auryn weight matrix. Has to be kept in row major order for load operation. | ||
+ | % Connection name: Poisson-> | ||
+ | % Locked range: 8 | ||
+ | % | ||
+ | 1000 4000 49952 | ||
+ | 1 57 6.971942e-02 | ||
+ | 1 129 6.517706e-02 | ||
+ | 1 233 6.546227e-02 | ||
+ | 1 385 5.322644e-02 | ||
+ | 1 457 7.060073e-02 | ||
+ | 1 617 6.956130e-02 | ||
+ | ... | ||
+ | </ | ||
+ | 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. |
manual/wmat.txt · Last modified: 2014/12/02 10:03 by zenke