From maintainers-request at octave dot org Wed Nov 17 08:52:15 2004 Subject: Re: int octave_value::numel (void) const; From: "John W. Eaton" To: David Bateman Cc: maintainers at octave dot org Date: Wed, 17 Nov 2004 09:52:12 -0500 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? Thanks, jwe