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,ab436e97ff76821f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.223.73 with SMTP id qs9mr1371401pbc.7.1342077153798; Thu, 12 Jul 2012 00:12:33 -0700 (PDT) Path: l9ni11515pbj.0!nntp.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Does Ada need elemental functions to make it suitable for scientific work? Date: Thu, 12 Jul 2012 09:12:41 +0200 Organization: cbb software GmbH 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> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-07-12T09:12:41+02:00 List-Id: On Wed, 11 Jul 2012 17:31:33 -0700 (PDT), robin.vowels@gmail.com wrote: >> 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, In linear algebra, provided matrices mean matrices, per-element operation just does not make any sense. Exp(A), as well as power series are fairly common in spectral analysis. > 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. My FORTRAN and PL/1 are quite rusty, but even these incredibly poor languages did not define multiplication for matrices that way. In fact they just had no matrices last time I used either. I remember one library for sparse matrices in FORTRAN-IV, doing LU decomposition and other stuff. It was quite fun. The library was in fact very well-designed, but since FORTRAN-IV lacked even elementary data types, they did all memory management required using INTEGER*4 as an index in one huge REAL*4 array, serving as a memory pool. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de