[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: int octave_value::numel (void) const;
From: |
David Bateman |
Subject: |
Re: int octave_value::numel (void) const; |
Date: |
Wed, 17 Nov 2004 16:13:18 +0100 |
User-agent: |
Mutt/1.4.1i |
According to John W. Eaton <address@hidden> (on 11/17/04):
> 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?
Perfect :-)
D.
--
David Bateman address@hidden
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