help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: load sparse matrix from matlab hdf5 file


From: Martin Helm
Subject: Re: load sparse matrix from matlab hdf5 file
Date: Fri, 01 Apr 2011 23:29:09 +0200

Am Freitag, den 01.04.2011, 12:01 +0200 schrieb Francesco Potortì: 
> >Am Donnerstag, den 31.03.2011, 18:41 +0200 schrieb Christian Fischer: 
> >> Hi
> >> 
> >> I want to load a sparse matrix from hdf5 file created by matlab.
> >> I ended up with a struct like:
> >> 
> >> octave3.3.54:3> a
> >> a =
> >> {
> >>   data =
> >>      1   2   3
> >>   ir =
> >>     0  1  2
> >>   jc =
> >>     0  1  2  3
> >> }
> >> 
> >> Is it possible to load the matrix as sparse matrix? Or is there a quick 
> >> way to
> >> convert the struct into a sparse matrix in octave.
> 
> Hve you looked at spconvert?
> 
spconvert does something completely different it takes the same input as
sparse itself just put together into one matrix instead of a vector for
the row, column index and the values respectively.
It is not usable to convert CCS or CCR.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]