help-octave
[Top][All Lists]
Advanced

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

Re: nnz and char


From: Andy Adler
Subject: Re: nnz and char
Date: Tue, 31 Jan 2006 10:04:21 -0500 (EST)

On Tue, 31 Jan 2006, David Bateman wrote:
> This patch is not quite right. The problem is that there are two methods
> in Sparse<T> for the number of non-zero elements. These are "nnz" and
> "nonzero". "nnz" returns the size of data and ridx, while nonzero
> returns "cidx[ncol]"... For matlab compatiablity for sparse matrices,
> Fnnz should return "cidx[ncol]" rather than the size of ridx and data,
> which is why the old Fnnz in sparse.cc used the "nonzero" method of
> Sparse<T>..

David,

I'm embarassed to admit this, but I can't figure out what you said.

Could you explain what the difference is between cidx[ncol] and
length( ridx )?
--
Andy Adler <address@hidden> 1(613)562-5800x6218



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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