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,c4cb2c432feebd9d X-Google-Thread: 1094ba,c4cb2c432feebd9d X-Google-Attributes: gid103376,gid1094ba,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!j55g2000cwa.googlegroups.com!not-for-mail From: "Martin Krischik" Newsgroups: comp.lang.ada,comp.lang.fortran Subject: Re: Ada vs Fortran for scientific applications Date: 23 May 2006 00:02:18 -0700 Organization: http://groups.google.com Message-ID: <1148367738.091826.108040@j55g2000cwa.googlegroups.com> References: NNTP-Posting-Host: 138.189.119.153 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1148367743 28599 127.0.0.1 (23 May 2006 07:02:23 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 23 May 2006 07:02:23 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: j55g2000cwa.googlegroups.com; posting-host=138.189.119.153; posting-account=2-0LkQwAAAAQMhPSoYwlMiUmi-6lYh44 Xref: g2news2.google.com comp.lang.ada:4355 comp.lang.fortran:10103 Date: 2006-05-23T00:02:18-07:00 List-Id: Gareth Owen wrote: > Paul Van Delst writes: > > > At the risk of igniting a language war (not my intent) and/or exposing > > my ignorance of Ada, I find the former misleading. To me, A*B suggests > > a regular old multiplication of two arrays, rather than a matix > > multiplication. > > 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. Honest truth: For a user defined type - in Ada - * means whatever the programmer wants it to mean. iE. unary + is often (mis)used as a shorthand for type conversion. In that respect Ada is not better then any other language with user defined operators. But then: you can allways define a Matrix_Multiplication (...) function as well. Martin