comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: ada lapack
Date: Sat, 18 Aug 2012 18:32:10 +0100
Date: 2012-08-18T18:32:10+01:00	[thread overview]
Message-ID: <m2k3wwxg11.fsf@nidhoggr.home> (raw)
In-Reply-To: bb1160d1-b584-42d2-85ba-6d9e570f09a5@googlegroups.com

Ada novice <shai.lesh@gmx.com> writes:

> I hope that someone can come up with a solution to this problem. It's
> unblievable that one has to "reinvent the wheel". Of course in the
> same program, one would want to be able to mix the lapack codes with
> those of Ada numerics seamlessly.

The types from Ada.Numerics are convention Ada by default, while the
types in Ada_Lapack are convention Fortran.

It would be nice to be able to say something like

   with Ada.Numerics.Generic_Complex_Arrays;

   generic
      with package Complex_Arrays
         is new Ada.Numerics.Generic_Complex_Arrays (<>);
   package Conventions is

      type Complex_Matrix
      is new Complex_Arrays.Complex_Matrix with Convention => Fortran;

which would give you the operations you want, but unfortunately

   gcc -c -gnat12 conventions.ads
   conventions.ads:9:46: representation item appears too late
   conventions.ads:9:46: primitive operations already defined for "Complex_Matrix"
   gnatmake: "conventions.ads" compilation error

> It's definitely an issue that Ada programmers need to look into if we
> would like to attract people to use Ada.

Who are these "Ada programmers"? Looks to me as though it's you, Leo and
Nasser!



  reply	other threads:[~2012-08-18 17:32 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-15  6:16 ada lapack Leo Brewin
2012-08-16  3:34 ` Jerry
2012-08-17  6:25 ` Ada novice
2012-08-17  7:11   ` Leo Brewin
2012-08-17  7:42     ` Ada novice
2012-08-17  9:43       ` Niklas Holsti
2012-08-17 10:27         ` Ada novice
2012-08-17 11:08           ` Niklas Holsti
2012-08-17 11:33             ` Ada novice
2012-08-17 13:45               ` Leo Brewin
2012-08-17 14:11                 ` Marc C
2012-08-18 11:57                   ` Ada novice
2012-08-18 13:13                     ` Niklas Holsti
2012-08-18 13:48                       ` Ada novice
2012-08-18 15:22                         ` Nasser M. Abbasi
2012-08-18 16:33                           ` Ada novice
2012-08-18 17:32                             ` Simon Wright [this message]
2012-08-18 17:44                               ` Nasser M. Abbasi
2012-08-18 20:45                             ` Niklas Holsti
2012-08-18 21:46                               ` Simon Wright
2012-08-19  2:24                                 ` Leo Brewin
2012-08-19  5:39                                   ` Ada novice
2012-08-19  7:10                                     ` Leo Brewin
2012-08-19 13:02                                       ` Simon Wright
2012-08-20 14:05                                         ` Nasser M. Abbasi
2012-08-20 14:57                                           ` Simon Wright
2012-08-20 15:10                                             ` Nasser M. Abbasi
2012-08-20 18:09                                               ` Ada novice
2012-08-20 18:46                                             ` Nasser M. Abbasi
2012-08-20 15:03                                           ` Nasser M. Abbasi
2012-08-20 22:57                                             ` Simon Wright
2012-08-20 23:09                                               ` Nasser M. Abbasi
2012-08-20 23:31                                                 ` Simon Wright
2012-08-21 10:44                                             ` Simon Wright
2012-08-21 14:50                                               ` Nasser M. Abbasi
2012-08-18 22:51                               ` Nasser M. Abbasi
2012-08-18 23:16                                 ` Niklas Holsti
2012-08-18 23:40                                   ` Nasser M. Abbasi
2012-08-19  7:50                                     ` Niklas Holsti
2012-08-19  2:20                             ` Leo Brewin
2012-08-17 14:12                 ` Brian Drummond
replies disabled

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