octave-maintainers
[Top][All Lists]
Advanced

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

Re: Diagonal v. sparse matrices [was Re: deprecated functions]


From: John W. Eaton
Subject: Re: Diagonal v. sparse matrices [was Re: deprecated functions]
Date: Thu, 5 Mar 2009 02:57:42 -0500

On  5-Mar-2009, Jaroslav Hajek wrote:

| On Wed, Mar 4, 2009 at 10:17 PM, John W. Eaton <address@hidden> wrote: 
|
| > What do you mean by "without losing efficiency"?  Does
| >
| >  a = diag (...);
| >  sparse (a);
| >
| > convert A to full first, then sparse?
| 
| ... yes.
| 
| > If so, it seems that should be fairly easy to fix.
| 
| It was really quite straightforward - fix is online.

Thanks.

| > In any case, I think the following change should
| > be made to spdiag.  This is much simpler than having to check
| > arguments in spdiag, and will be efficient if the "sparse (diag)"
| > constructor is fixed.  But the important thing is that for
| > compatibility with previous versions of Octave, spdiag returns a
| > sparse matrix, not a diag matrix.  Do you agree?
| 
| Agreed.

OK, I applied that change.

Thanks,

jwe



reply via email to

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