octave-maintainers
[Top][All Lists]
Advanced

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

Re: int octave_value::numel (void) const;


From: John W. Eaton
Subject: Re: int octave_value::numel (void) const;
Date: Wed, 17 Nov 2004 09:52:12 -0500

On 17-Nov-2004, David Bateman <address@hidden> 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



reply via email to

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