freepooma-devel
[Top][All Lists]
Advanced

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

Re: [pooma-dev] Array size() function


From: Jeffrey Oldham
Subject: Re: [pooma-dev] Array size() function
Date: Wed, 18 Apr 2001 13:45:18 -0700
User-agent: Mutt/1.2.5i

On Wed, Apr 18, 2001 at 01:54:17AM -0700, Julian C. Cummings wrote:
> Hi,
> 
> One of the guys at Caltech using Pooma pointed 
> out to me that there is no size() function in
> the Array interface to return the total number 
> of elements.  There is a function length(int d)
> that gives the length of axis d.  But for a 1D
> Array or a DynamicArray, it seems odd to say
> length(0).  The length(int) function is written
> using the Domain of the Array, and all Domains
> provide a size() function.  So it seems sensible
> to add a size() function in Array that would just
> pass on the request to the Domain.  Is that OK
> with everyone?  We should check that we are 
> returning an appropriate size_type, such as long.

Fine with me.

Jeffrey D. Oldham
address@hidden

reply via email to

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