comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: The answer to "Can Ada replace FORTRAN for numerical computation?
Date: Mon, 22 Jul 2019 14:20:12 +0100
Date: 2019-07-22T14:20:12+01:00	[thread overview]
Message-ID: <lyv9vu5hpv.fsf@pushface.org> (raw)
In-Reply-To: 4ba1579b-a096-483d-8f7a-9028a419d643@googlegroups.com

Lucretia <laguest9000@googlemail.com> writes:

> On Monday, 22 July 2019 06:53:06 UTC+1, Simon Wright  wrote:
>
>> I can't believe that the visible complaint (the ordering convention for
>> matrices, row- vs column-major) would seriously impact the mental
>> dexterity required to write mathematical code.
>> 
>> And now we have Convention (Fortran), which makes it not-too-hard to
>> interface to existing Fortran code.
>
> Wouldn't Ada also require multi-dimensional slices? Something I've
> been wanting for a while, albeit in limited form, 2D/3D for
> images/textures.

I _think_ this is what the Fortran PACK/UNPACK & RESHAPE packages are
for; for example [1]. Interesting that the representation of the
matrices looks row-major!

The pre- and post-conditions might be a challenge.

[1] https://software.intel.com/en-us/fortran-compiler-developer-guide-and-reference-unpack


  reply	other threads:[~2019-07-22 13:20 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-22  4:38 The answer to "Can Ada replace FORTRAN for numerical computation? Nasser M. Abbasi
2019-07-22  5:53 ` Simon Wright
2019-07-22 10:32   ` Lucretia
2019-07-22 13:20     ` Simon Wright [this message]
2019-07-22 17:27       ` Lucretia
2019-07-24 23:45         ` Randy Brukardt
2019-08-15 16:45           ` Norman Worth
2019-08-15 19:07             ` Dmitry A. Kazakov
2019-08-16 18:29               ` Norman Worth
2019-08-16 19:23                 ` Dmitry A. Kazakov
2019-08-18 17:04                   ` Norman Worth
2019-07-23  1:35 ` Brad Moore
2019-07-23 23:42 ` Jerry
2019-08-03 12:30 ` Nasser M. Abbasi
2019-08-05 14:35   ` Shark8
2019-08-05 17:15     ` Optikos
2019-08-07  6:35       ` Niklas Holsti
2019-08-07 20:42         ` Optikos
2019-08-16 19:11           ` Norman Worth
2019-08-16 20:15             ` Jeffrey R. Carter
2019-08-17  2:38             ` robin.vowels
replies disabled

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