[Top][All Lists]

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

[Octave-bug-tracker] [bug #41346] spconvert() with complex matrices

From: Carlo de Falco
Subject: [Octave-bug-tracker] [bug #41346] spconvert() with complex matrices
Date: Sat, 25 Jan 2014 10:53:40 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:26.0) Gecko/20100101 Firefox/26.0

Follow-up Comment #1, bug #41346 (project octave):


Thanks for posting this report.
As I noted in my reply on the mailing list,
this issue is due to an error on the part of 
PETSc which exploits an undocumented feature in 
Matlab's 'spconvert' so you should also report
it to the PETSc developers:


The fix would be trivial there to, simply
export complex sparse matrices as real matrices
with four columns instead of complex matrices with
three columns, i.e.:

s = [irow jcol xreal yimag]
mat = spconvert (s)

instead of 

s = [irow jcol xreal + i yimag)]
mat = spconvert (s)

Anyway I'll wait for comments 
from the core developers
to see if we should follow the undocumented
Matlab behaviour in Octave.



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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