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: a07f3367d7,ab436e97ff76821f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.24.135 with SMTP id u7mr294033wif.3.1343909868631; Thu, 02 Aug 2012 05:17:48 -0700 (PDT) Received: by 10.224.18.144 with SMTP id w16mr10644634qaa.1.1343909868567; Thu, 02 Aug 2012 05:17:48 -0700 (PDT) MIME-Version: 1.0 X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 88.191.116.97 Path: n2ni6149win.0!nntp.google.com!12no3413734wil.1!news-out.google.com!a15ni8156946qag.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!news.matabio.net!jeffrey.matabio.net!thue.elzevir.fr!nntpfeed.proxad.net!dedibox.gegeweb.org!gegeweb.eu!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: glen herrmannsfeldt Newsgroups: comp.lang.ada,comp.lang.pl1 Subject: Re: Does Ada need elemental functions to make it suitable for scientific work? Date: Sun, 29 Jul 2012 20:54:44 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <18c77859-480c-41f5-bb1c-df7ad067f4f3@googlegroups.com> <637de084-0e71-4077-a1c5-fc4200cad3cf@googlegroups.com> <1wqz1wr8wto96.1fwpyip6ct1z9.dlg@40tude.net> <3e3487d1-c6e8-47d2-b75b-f9aedafed4ff@googlegroups.com> <0a4d8d8d-834b-4851-9a3a-f7867e779ebe@d6g2000pbt.googlegroups.com> NNTP-Posting-Host: H0vc4U5LIRkRHNPyGCs2dA.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: tin/1.9.6-20100522 ("Lochruan") (UNIX) (Linux/2.6.32-5-amd64 (x86_64)) X-Notice: Filtered by postfilter v. 0.8.2 Date: 2012-07-29T20:54:44+00:00 List-Id: In comp.lang.pl1 Dmitry A. Kazakov wrote: (snip, someone wrote) >>>>> It is ill-defined. E.g. exp(A), where A is a matrix. >>>>> Is exp(A) a matrix of exponents or exponent matrix? I can see a general purpose (more or less) high-level languages offering a matrix multiply operator, but this seems a little less common. The only language I know of that offers matrix multiply and not element-by-element multiply is BASIC. >>>> In languages that provide whole array operations (i.e., >>>> element-by-element operations -- such as PL/I and Fortran), >>>> it is the former. Fortran now has the MATMUL intrinsic to do matrix multiplication. The * operator does element by element multiply. One could ask for a MATEXP intrinsic, though it isn't likely to be added soon. -- glen