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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c4cb2c432feebd9d X-Google-Thread: 1094ba,c4cb2c432feebd9d X-Google-Attributes: gid103376,gid1094ba,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsdst02.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr27.news.prodigy.net.POSTED!2febb241!not-for-mail Reply-To: "Nasser Abbasi" From: "Nasser Abbasi" Newsgroups: comp.lang.ada,comp.lang.fortran References: <44734543.80609@cits1.stanford.edu> Subject: Re: Ada vs Fortran for scientific applications X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Response Message-ID: <1rPcg.14075$fb2.5282@newssvr27.news.prodigy.net> NNTP-Posting-Host: 69.236.11.210 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr27.news.prodigy.net 1148437309 ST000 69.236.11.210 (Tue, 23 May 2006 22:21:49 EDT) NNTP-Posting-Date: Tue, 23 May 2006 22:21:49 EDT Organization: SBC http://yahoo.sbc.com X-UserInfo1: TSU[@ION[JVUS_\Y\JK@OWP@FB^FBL@MAHU^_BAMEH]TCDYG^WHOPCWZBL[\YUWHANGYZEFNHFZPNLOBUNSS^_LGEVWEY\PHO@YJSSWBBDT\PFD^ESBTXVCCMTD]JCJLE\_IJMFNRY]SWE[S[D_CNB__ZK^VGVCKHA[S@COB^[@ZQSDFQ\BPMS@DZVUKQTJL Date: Wed, 24 May 2006 02:21:49 GMT Xref: g2news2.google.com comp.lang.ada:4398 comp.lang.fortran:10165 Date: 2006-05-24T02:21:49+00:00 List-Id: "Martin Dowie" wrote in message news:Z5-dnZJnkvdj5u7ZRVnyrQ@bt.com... > Rich Townsend wrote: >> Brooks Moses wrote: >>> Rich Townsend wrote: >>> >>>> Gareth Owen wrote: >>>> >>>>> I think assuming anything about A*B is extremely dangerous. Just of >>>>> the top of my head, Ada and Matlab think it means matrix >>>>> multiplication and Fortran and Mathematica think its pointwise >>>>> multiplication. >>>>> >>>>> It means basically nothing in C, and in C++ it means whatever the >>>>> matrix class implementor wanted it to mean. >>>> >>>> >>>> My stance on A*B is this: if A*B denotes matrix multiplication, then >>>> A/B should denote matrix 'division': B^-1*A. Which means you need to >>>> standardize matrix inversion/linear-equations solution into the >>>> language. Which is batshit crazy. >>> >>> >>> I believe that's how Matlab does it. >>> >>> Then again, for Matlab's purposes, standardizing matrix inversion and >>> linear-equation solution into the language is entirely reasonable. >>> >> >> Exactly. But I don't think you would find a single person in this >> newsgroup who would support inclusion of a solver in Fortran. And the >> reason would be netlib. >> >> In this respect, Matlab is a language *AND* a library; whereas Fortran is >> just a language, and netlib is the numerics metalibrary for it. > > Hmmm, that sounds suspiciously like what has just been standardized within > Ada (Ada2005 that is). > > Here is a link to the "Rationale" written by John Barnes: > http://www.adaic.org/standards/05rat/html/Rat-7-6.html > > Cheers > -- Martin WOW! thanks for the link. I had no idea Ada now supports all these useful Matrix operations in its libraries. There should be more such functions, but this is a great start. I have gnat2005, so I'll see if I get a change to try the solve function and compare it to Matlab's (ofcourse Matlab has much much more Matrix related functions, but for Ada, this is a great start in the right direction). Nasser