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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ab436e97ff76821f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.220.230 with SMTP id pz6mr270343pbc.3.1342053094124; Wed, 11 Jul 2012 17:31:34 -0700 (PDT) Path: l9ni11515pbj.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: robin.vowels@gmail.com Newsgroups: comp.lang.ada Subject: Re: Does Ada need elemental functions to make it suitable for scientific work? Date: Wed, 11 Jul 2012 17:31:33 -0700 (PDT) Organization: http://groups.google.com Message-ID: <3e3487d1-c6e8-47d2-b75b-f9aedafed4ff@googlegroups.com> References: <18c77859-480c-41f5-bb1c-df7ad067f4f3@googlegroups.com> <637de084-0e71-4077-a1c5-fc4200cad3cf@googlegroups.com> <1wqz1wr8wto96.1fwpyip6ct1z9.dlg@40tude.net> NNTP-Posting-Host: 123.2.70.40 Mime-Version: 1.0 X-Trace: posting.google.com 1342053094 3568 127.0.0.1 (12 Jul 2012 00:31:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 12 Jul 2012 00:31:34 +0000 (UTC) Cc: mailbox@dmitry-kazakov.de In-Reply-To: <1wqz1wr8wto96.1fwpyip6ct1z9.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=123.2.70.40; posting-account=S_MdrwoAAAD7T2pxG2e393dk6y0tc0Le User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-07-11T17:31:33-07:00 List-Id: On Tuesday, 10 July 2012 19:07:05 UTC+10, Dmitry A. Kazakov wrote: > On Tue, 10 Jul 2012 03:39:58 -0500, Nasser M. Abbasi wrote: > > > That is a start. But not enough by any means. All functions should be > > vectorized. > > It is ill-defined. E.g. exp(A), where A is a matrix. Is exp(A) a matrix of > exponents or exponent matrix? In languages that provide whole array operations (i.e., element-by-element operations -- such as PL/I and Fortran), it is the former. BTW., I think you mean matrix exponential, which is a far less common operation than exp(A) or e**A(i) for i = 1 to n, and would be written MATRIX_EXPONENTIAL or some such, just as matrix multiplication would be written MATRIX_MULT or some such, to distinguish it from the more common element-by-element product. > To me it is the second. A similar example for > vectors: abs V. Is it a vector of absolute values, or maybe ||V||? For element-by-element operations, it means the first, as in PL/I and Fortran.