help-octave
[Top][All Lists]
Advanced

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

Re: nnz and char


From: David Bateman
Subject: Re: nnz and char
Date: Wed, 01 Feb 2006 10:52:05 +0100
User-agent: Mozilla Thunderbird 0.8 (X11/20040923)

John W. Eaton wrote:

On 31-Jan-2006, David Bateman wrote:

| John W. Eaton wrote:
|
| > Now I see that the user-level nzmax function calls capacity if it is
| > given a sparse matrix object, and has this comment:
| >
| >       // XXX FIXME XXX should nnz be a method of octave_base_value
| >       // so that the below can be replaced with "retval = (double)
| >       // (args(0).nz ());"
| >
| > (this is referring to the original nnz function).  So maybe it would
| > be better to use the name nzmax instead of capacity.  Unless you
| > object, I will make that change, and add nzmax to the octave_value
| > class.
|
| Ok, with me, that will simplify this function as well...

I also needed to change the name of the Sparse<T>::nnz data member to
avoid a conflict with the new nnz() member function.  I chose nzmx as
the new name.  Is that OK?  My changes are checked in now.

jwe

ok, I'll check when I can do a cvs update...

D.

--
David Bateman                                address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob) 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax) The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary



-------------------------------------------------------------
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]