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,c3d0e99376a4f379 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!z24g2000prh.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: Interested about number crunching in Ada Date: Fri, 17 Aug 2007 02:43:01 -0700 Organization: http://groups.google.com Message-ID: <1187343781.597932.179210@z24g2000prh.googlegroups.com> References: <1187235764.909133.180650@19g2000hsx.googlegroups.com> NNTP-Posting-Host: 75.171.43.152 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1187343782 32031 127.0.0.1 (17 Aug 2007 09:43:02 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 17 Aug 2007 09:43:02 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US) AppleWebKit/420+ (KHTML, like Gecko, Safari/420) OmniWeb/v607.17,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: z24g2000prh.googlegroups.com; posting-host=75.171.43.152; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:1473 Date: 2007-08-17T02:43:01-07:00 List-Id: > One can always link to BLAS and linpack/lapack libraries (which are written > in Fortran), I just googled around for ada binding to blas, here is linkhttp://topo.math.u-psud.fr/~sands/Programs/BLAS/index.html The above binding is written for Ada 95. It seems to me that a binding for Ada 2005 would have to be different from this one in that it would use the official types for vectors and matrices, that is, type Real_Vector is array (Integer range <>) of Real'Base; type Real_Matrix is array (Integer range <>, Integer range <>) of Real'Base; as defined in Annex G.3 here http://www.adaic.com/standards/05rm/html/RM-G-3-1.html, whereas the Ada 95 bindings at the link above use these definitions: type Vector is array (Positive range <>) of Float; pragma Convention (Fortran, Vector); type Matrix is array (Positive range <>, Positive range <>) of Float; pragma Convention (Fortran, Matrix); which are declared in the user's program. (Similarly for complex vectors and matrices.) Jerry