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=2.0 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,81bb2ce65a3240c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.219.170 with SMTP id pp10mr6457190pbc.1.1341405021289; Wed, 04 Jul 2012 05:30:21 -0700 (PDT) Path: l9ni10838pbj.0!nntp.google.com!news1.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.musoftware.de!wum.musoftware.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? Date: Wed, 04 Jul 2012 07:30:16 -0500 Organization: Aioe.org NNTP Server Message-ID: References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5> <4ff312ad$0$6178$ba4acef3@reader.news.orange.fr> <4ff314d8$0$6218$ba4acef3@reader.news.orange.fr> <856acffb-1fc3-474e-b11f-f540977e945f@googlegroups.com> Reply-To: nma@12000.org NNTP-Posting-Host: 5E965/jsyip5pnotP/4IDQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-07-04T07:30:16-05:00 List-Id: On 7/4/2012 6:41 AM, Ada novice wrote: Fyi, Ada already has some limited build-in API for the above as part of its library (solve(), transpose(), etc..). See my list here: http://12000.org/my_notes/lapack_analysis/index.htm There is a lacack 77 binding to Ada. I installed it the other day. most of the tests passed (using GNAT 2012), but some failed. I need to figure why some tests failed (the calls made to some Lapack functions were wrong, need to fix the binding). The binding is here ftp://ftp.cs.kuleuven.be/pub/Ada-Belgium/mirrors/gnu-ada/OLD/contrib/lapack-ada/ I had to make few tweaks to makefile to get the build work. The GNAT command I used to build example1 ----------------------- gnatmake -gnat2012 example1.adb -largs -L/usr/lib/atlas-base/:/usr/lib/atlas-base/atlas/:/usr/lib:/usr/lib/libblas -largs -lblas gnatbind -x example1.ali gnatlink example1.ali -L/usr/lib/atlas-base/:/usr/lib/atlas-base/atlas/:/usr/lib:/usr/lib/libblas -lblas -------------------------- Need to install blas and lapack yourself first. Use Atlas blas. Will document all that when I have little time, but need to fix the test errors I got from the above binding first. I was trying to see if I can use Lapack directly from Ada. There is also now lapack90. Lapack 77 is old and I think lapack90 is the better API to use. That is meant for use with Fortran90 and beyond. btw, Fortran does have many more math build-in functions (called intrinsic functions) than Ada does. --Nasser