From maintainers-request at octave dot org Wed Nov 17 09:16:41 2004 Subject: Re: int octave_value::numel (void) const; From: David Bateman To: "John W. Eaton" Cc: maintainers at octave dot org Date: Wed, 17 Nov 2004 16:13:18 +0100 According to John W. Eaton (on 11/17/04): > On 17-Nov-2004, David Bateman wrote: > > | You also need the attached one line patch so that the "end" keyword > | will work correctly for types where numel() is not the same as > | dims().numel()... > > OK, I made this change and added the following comment: > > // We want numel = prod (size ()) here, so dont' use > // index_object->numel () as that may be different (it is > // the number of nonzero elements for sparse arrays). > > Is that accurate? Perfect :-) D. -- David Bateman David dot Bateman at motorola dot com Motorola CRM +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax) 91193 Gif-Sur-Yvette FRANCE The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary