Diagonal v. sparse matrices [was Re: deprecated functions]
Jaroslav Hajek
highegg at gmail.com
Wed Mar 4 14:16:31 CST 2009
On Wed, Mar 4, 2009 at 9:13 PM, John W. Eaton <jwe at octave.org> wrote:
> On 4-Mar-2009, Jason Riedy wrote:
>
> | I suppose the shortest path to a fix is to revert spdiag.
>
> Maybe it would be best to leave spdiag deprecated and just translate
> the spdiag call to spdiags. That will be a little more complicated
> that just calling "spdiags (varargin{:})", but I think it should be
> possible without too much effort. Then the deprecated warning message
> can recommend using spdiags instead.
>
But why, by heaven? What's so wrong with diag(sparse(vector))?
--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
More information about the Octave-maintainers
mailing list