From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,a83584e000bc28fa X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.85.37 with SMTP id e5mr1155729paz.31.1345311131745; Sat, 18 Aug 2012 10:32:11 -0700 (PDT) Received: by 10.180.105.38 with SMTP id gj6mr1116395wib.0.1345311131351; Sat, 18 Aug 2012 10:32:11 -0700 (PDT) Path: kg8ni1323pbc.0!nntp.google.com!news2.google.com!7no22855425wig.0!news-out.google.com!n2ni195823773win.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: ada lapack Date: Sat, 18 Aug 2012 18:32:10 +0100 Organization: A noiseless patient Spider Message-ID: References: <12f929e9-eea3-4dc9-b10d-71e4f5732e0d@googlegroups.com> <615dd222-9c8b-4878-94f7-b1cd4792bd3e@googlegroups.com> <36bc4009-6240-4797-991c-b72ec290cedc@googlegroups.com> <12606f3f-aec1-489c-8325-18e13007b6a6@googlegroups.com> <11959826-e12e-4455-b9d9-1ac4dcaf2952@googlegroups.com> <3bdbf14a-52ff-4b72-9e7b-42b543538959@googlegroups.com> <5865849c-3897-4be5-8d54-1de2e1acc3a7@googlegroups.com> <781001a0-3a99-40ac-bc5b-c8337124b29b@googlegroups.com> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="f0da64ccd4791c80ba5fb6b10d855629"; logging-data="4754"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kjoR3Fo6UT5f+acfUMHsKCnEFR04aGrE=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (darwin) Cancel-Lock: sha1:r6l045Kz0ZXwB6oqAm+LoTZ5NRY= sha1:pbprmvzIIbuQ9AVvlAmISXJVOsM= Content-Type: text/plain Date: 2012-08-18T18:32:10+01:00 List-Id: Ada novice 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!