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: 103376,c1bdceb867926fdb X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Interfacing Ada with C Date: Sun, 25 Jul 2010 09:29:55 +0100 Organization: A noiseless patient Spider Message-ID: References: <0ee9eec7-6024-4fb8-8df0-f65c146e4b84@i28g2000yqa.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 25 Jul 2010 08:29:56 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="31015"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18mqN9d8uoWkUlKarCafnlc81S5vcbGET4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:Y9LT/xRq/V7QtnfdCktDP9MwM+4= sha1:1HEnKDaOAI8wQSu7rd/POTvpL/I= Xref: g2news1.google.com comp.lang.ada:12537 Date: 2010-07-25T09:29:55+01:00 List-Id: Ada novice writes: > On Jul 24, 6:38 pm, Simon Wright wrote: > >> but on a Windows machine it'll be something li >> \\lib\gcc\\\adainclude\a-ngrear.ad[sb] >> >> This will lead you to System.Generic_Real_BLAS (s-gerebl.ad[sb]) and >> System.Generic_Real_LAPACK (s-gerela.ad[sb]), which are interfaces to >> the corresponding external libraries. >> >> Not sure that these will fit your 'simple' criterion, though! >> >> --S > > Thanks. I've been able to locate these files under GNAT on my Windows > machine and read them. For eigensystems operations, only symmetric and > hermitian (complex-symmetric) matrices are allowed. I would like > however to be able to deal with a general non-symmetric matrix and > this I believe is not possible right now with Ada. No, but those files implement interfaces to those *parts of* the external libraries BLAS and LAPACK that were necessary to implement the Numerics annex. It may be that the other parts of those libraries contain the features you're looking for, in which case you have a head start on your own implementation. But, if not, you can at least see one approach to the job that you could adopt for the external library of your choice.