octave-maintainers
[Top][All Lists]
Advanced

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

Re: About diagonal matrices


From: John W. Eaton
Subject: Re: About diagonal matrices
Date: Sun, 22 Feb 2009 12:31:06 -0500

On 22-Feb-2009, Jaroslav Hajek wrote:

| >  * There is a function to coerce a full matrix to a diagonal matrix.
| >    It should require that all off-diagonal elements are numerically
| >    zero.  This is not the same as the current diag function.
| 
| I don't understand this point? Why is such a function needed?

Currently you can do things like

  sparse (x)

to create a sparse matrix from X.  It seemed to me that it would be
useful to be able to do the same for diagonal matrices.  But maybe it
is not as useful as I was originally thinking.

jwe


reply via email to

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