octave-maintainers
[Top][All Lists]
Advanced

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

RE: Re: Sparse matrix problem


From: michael . goffioul
Subject: RE: Re: Sparse matrix problem
Date: Wed, 03 Jan 2007 15:52:57 +0100

> Ok, this was a lot more work than I though it would be, but here is the
> patch. Basically it allows scalars to be stored in a sparse matrix
> container and to be treated as if they were scalars. This is necessary
> as Mathworks chose the path of letting the user store scalars as sparse
> matrices rather than automatically reconverting these to scalars. In any
> case the attached patch makes octave matlab compatible for scalars
> stored as sparse matrices for all operators...
 
But it does not solve the fact that (note element-wise division):
 
[1+i 2-i] ./ [0 0-i]
 
gives under Octave
 
[NaN + NaNi     1 +   2i]
 
and under Matlab
 
[Inf +    Infi   1.0000 + 2.0000i]
 
Does it?
 
Michael.
 

reply via email to

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