comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@bix.com
Subject: Re: How to make like Fortran "do i = 1,20,2"
Date: 2000/07/29
Date: 2000-07-29T00:00:00+00:00	[thread overview]
Message-ID: <URtg5.105$aU1.128484@news.pacbell.net> (raw)
In-Reply-To: 8lrhj3$il7$1@news.uit.no

>When one tries to deal with representing geometry and solve
>differential equations and following some mathematical
>notation, one may want to visit subsets of elements in arrays ?
  Are the subsets inherent and fixed, two sequential items for an x,y
pair for instance, or are they dynamic, arising from the nature of the
algorithm?
  In the first case, as someone suggested, the "Ada way" would be to
make an array of records, or of two-vectors, or simply a two
dimensional array with rows of length two, and step through it from one
row to the next, ie, by one.
  In the second case, if the algorithm calls for stepping by N at a
time, then, as pointed out, that is indeed more easily expressed in
Fortran than in Ada.  It's surely an unusual situation, though.




  parent reply	other threads:[~2000-07-29  0:00 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-27  0:00 How to make like Fortran "do i = 1,20,2" Reinert Korsnes
2000-07-27  0:00 ` Larry Kilgallen
2000-07-27  0:00   ` Gary Scott
2000-07-27  0:00     ` Larry Kilgallen
2000-07-27  0:00     ` mjsilva
2000-07-27  0:00     ` Matthew J Heaney
2000-07-28  0:00       ` Gary Scott
2000-07-28  0:00         ` mjsilva
2000-07-29  0:00         ` Ehud Lamm
2000-07-28  0:00           ` Richard Riehle
     [not found]           ` <39833637.3B83BFAC@lmtas.lmco.com>
2000-07-29  0:00             ` Gary Scott
2000-07-29  0:00           ` Robert I. Eachus
2000-07-27  0:00     ` Pat Rogers
2000-07-27  0:00 ` Ken Garlington
2000-07-27  0:00 ` des walker
2000-07-27  0:00   ` Gary Scott
2000-07-27  0:00   ` tmoran
2000-07-28  0:00     ` Reinert Korsnes
2000-07-28  0:00       ` Gautier
2000-07-29  0:00       ` tmoran [this message]
2000-07-27  0:00 ` G. de Montmollin
2000-07-27  0:00 ` Lutz Donnerhacke
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox