Menu

#1 Sparse matrices doesn't work

open-fixed
nobody
None
5
2007-10-05
2007-08-24
No

Sparse matrices doesn't work as expected. It seems that it only works in some special cases (e.g. the one used in the test-case).

If the test/sparse.mat file is replaced like this:

>> spa = sparse([2 3 2 4],[3 3 5 5],[1 2 4 6],6,5,5)
>> cd JMatIO/test
>> save sparse spa

the test method testSparseFromMatlabCreatedFile fails.

It appears to me that the problem is related to the handling of column indeces (JC) and the sorting of elements. The case above works if I update those parts of the code, but I haven't verified this further.

/Jonas

Discussion

  • Wojciech Gradkowski

    Logged In: YES
    user_id=1467169
    Originator: NO

    Resolved with a patch provided by Jonas Pettersson in SVN rev. 65. Thank you very much Jonas

     
  • Wojciech Gradkowski

    • status: open --> open-fixed
     

Log in to post a comment.