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!news4.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail From: Brooks Moses Newsgroups: comp.lang.ada,comp.lang.fortran Subject: Re: Ada vs Fortran for scientific applications Date: Tue, 23 May 2006 10:24:19 -0700 Organization: Stanford University Message-ID: <44734543.80609@cits1.stanford.edu> References: NNTP-Posting-Host: dnab42a587.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.Stanford.EDU 1148405063 11955 171.66.165.135 (23 May 2006 17:24:23 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en In-Reply-To: Xref: g2news2.google.com comp.lang.ada:4375 comp.lang.fortran:10136 Date: 2006-05-23T10:24:19-07:00 List-Id: 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. - Brooks -- The "bmoses-nospam" address is valid; no unmunging needed.