![]() |
can Python open a matrix saved by Octave in sparse format?
1 Attachment(s)
Attached ZIP file contains a 17842x2696 matrix with 53526 non-zero elements stored in Octave sparse format. Can Python load a matrix stored in this format? |
Re: can Python open a matrix saved by Octave in sparse format?
do we know the size of the matrix before hand?
|
Re: can Python open a matrix saved by Octave in sparse format?
Quote:
Quote:
|
Re: can Python open a matrix saved by Octave in sparse format?
Quote:
Code:
|
Re: can Python open a matrix saved by Octave in sparse format?
Here's a bit of a quick hack:
Code:
import scipy.sparse--- A better approach would be to have Octave save the data into MATLAB format (using something like save -6 A_sparse_octave.mat A), then read it in Python using scipy.io.loadmat |
Re: can Python open a matrix saved by Octave in sparse format?
Quote:
Do you happen to know where I can find the spec for the Matlab matrix binary storage file format? |
Re: can Python open a matrix saved by Octave in sparse format?
|
| All times are GMT -5. The time now is 19:54. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi