manual:wmat
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
manual:wmat [2014/10/15 14:27] – Adds Matrix Market on Python description. zenke | manual:wmat [2014/10/15 14:43] – [Saving Matrix Market files in Python] zenke | ||
---|---|---|---|
Line 36: | Line 36: | ||
</ | </ | ||
'' | '' | ||
+ | |||
+ | |||
+ | |||
+ | ===== Saving Matrix Market files in Python ===== | ||
Likewise, a structured matrix can be prepared in Python and then be loaded in Auryn. To do so, use code along the lines of the following snipped: | Likewise, a structured matrix can be prepared in Python and then be loaded in Auryn. To do so, use code along the lines of the following snipped: | ||
Line 47: | Line 51: | ||
</ | </ | ||
+ | The additional conversion step to a csr_matrix is necessary to ensure the correct ordering of entries in the text file. If this step is omitted, Auryn might not be able to parse the sparse matrix and will throw a runtime exception. | ||
+ | |||
+ | **Note** that in many cases SciPy will append the file extension '' |
manual/wmat.txt · Last modified: 2014/12/02 10:03 by zenke