help-octave
[Top][All Lists]
Advanced

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

Re: ASCII file format for sparse matrices?


From: Jordi Gutiérrez Hermoso
Subject: Re: ASCII file format for sparse matrices?
Date: Fri, 13 May 2011 08:06:13 -0500

On 13 May 2011 04:51, Rui Maciel <address@hidden> wrote:
> On 05/13/2011 07:44 AM, David Bateman wrote:
>>
>> Yes octave uses CCS internal and only  supports CCS when reading from
>> files. However, you can always save the dara, row and column indices
>> separately and then use
>
> Are there any plans to support other sparse matrix input schemes in octave's
> load() command?

Probably not, unless they are your plans. This is the source file that
you can begin inspecting to provide a patch:

     http://hg.savannah.gnu.org/hgweb/octave/file/tip/src/ov-base-sparse.cc#l396

Note that most of the work is done in op>> here:

     http://hg.savannah.gnu.org/hgweb/octave/file/tip/liboctave/dSparse.cc#l7599

Which as you can see, is just a thin wrapper of the actual
read_sparse_matrix function:

     http://hg.savannah.gnu.org/hgweb/octave/file/tip/liboctave/Sparse.h#l586

The actual sparse representation right now only is CCS. It would
probably take a significant amount of rewriting much of the sparse
matrix code if you have another representation in mind. However, if
all you want is to extend the flexibility of the load command, that
can probably be arranged.

HTH,
- Jordi G. H.


reply via email to

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