From: BrianG <me@null.email>
Subject: Re: Can Ada iterate over Nd array?
Date: Thu, 26 Apr 2012 20:28:58 -0400
Date: 2012-04-26T20:28:58-04:00 [thread overview]
Message-ID: <jncp8b$99e$1@dont-email.me> (raw)
In-Reply-To: <jnc33p$4nk$1@tornado.tornevall.net>
On 04/26/2012 02:09 PM, Jeffrey Carter wrote:
> On 04/26/2012 02:15 AM, gautier.de.montmollin@gmail.com wrote:
>>
>> We could make a poll here: which is the maximum number of array
>> dimensions you ever used ?
>> My answer: probably 5 or 6.
>
> I don't recall ever using more than 3.
>
> I don't think arrays with more than about 30 dimensions are going to be
> possible with current technology: given only 2 index values/dimension,
> that's 2 ** 30 components, or 1 GB if each component is a byte. Much
> more than that and you won't be able to allocate the array. Even in the
> foreseeable future it doesn't look as if a 100-dimension array will be
> possible. 1000 dimensions is right out!
>
If what is desired is an "n-dimensional array" (i.e. n is a parameter of
some sort - generic or procedure parameter), what are you going to do
with it, even if you can iterate? How do you declare such a type? If
it's to be used as a library to work on "n-dimensional arrays", how do
you specify subroutine parameters? (Except as a raw memory address or
equivalent.)
--
---
BrianG
000
@[Google's email domain]
.com
next prev parent reply other threads:[~2012-04-27 0:29 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-26 4:42 Can Ada iterate over Nd array? Okasu
2012-04-26 5:36 ` Jeffrey Carter
2012-04-26 6:02 ` Okasu
2012-04-26 6:05 ` Okasu
2012-04-26 10:57 ` ytomino
2012-04-26 8:01 ` Dmitry A. Kazakov
2012-04-27 0:36 ` Randy Brukardt
2012-04-27 1:58 ` Jerrid Kimball
2012-04-27 7:39 ` Martin
2012-04-27 18:08 ` Jeffrey Carter
2012-04-30 7:20 ` Martin
2012-04-30 13:21 ` Robert A Duff
2012-04-30 15:42 ` Martin
2012-04-27 16:06 ` Shark8
2012-04-26 9:00 ` Georg Bauhaus
2012-04-26 15:48 ` Adam Beneschan
2012-04-26 20:54 ` Okasu
2012-04-27 0:39 ` Randy Brukardt
2012-04-27 13:30 ` Robert A Duff
2012-04-28 8:24 ` Georg Bauhaus
2012-04-28 9:35 ` björn lundin
[not found] ` <raadncdcv9V-hgHSnZ2dnUVZ_v2dnZ2d@earthlink.com>
2012-04-28 23:19 ` björn lundin
2012-04-30 14:48 ` gautier_niouzes
2012-05-01 2:02 ` Randy Brukardt
2012-04-27 4:19 ` Nasser M. Abbasi
2012-04-27 16:23 ` Bill Findlay
2012-04-26 9:40 ` gautier_niouzes
[not found] ` <26754113.2767.1335431755764.JavaMail.geo-discussion-forums@vbki8>
2012-04-26 18:09 ` Jeffrey Carter
2012-04-27 0:28 ` BrianG [this message]
2012-04-27 13:46 ` Robert A Duff
2012-04-27 11:09 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox