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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-03 19:25:32 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: 18k11tm001@sneakemail.com (Russ) Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X Date: 3 Jun 2003 19:25:32 -0700 Organization: http://groups.google.com/ Message-ID: References: NNTP-Posting-Host: 128.102.146.44 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1054693532 16058 127.0.0.1 (4 Jun 2003 02:25:32 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 4 Jun 2003 02:25:32 GMT Xref: archiver1.google.com comp.lang.ada:38565 Date: 2003-06-04T02:25:32+00:00 List-Id: tmoran@acm.org wrote in message news:... > > A += B > I may have missed something here - is the compiler supposed to > know that A and B are matrices, and generate code to add elements, No. > or is it just supposed to generate a call to > procedure "+="(Left : in out Matrices; Right : in Matrices) Yes. It would be user defined. > If the former, what if the elements of the matrices are themselves, > say, vectors, or complex numbers in polar form? If the former, > would you want to translate 'A B' as (A,B) > for arbitrary , or is this only for += and -= ? N/A > BTW, how often does "A := A+B;" occur in actual high performance > matrix arithmetic code? I think matrix addition comes up quite a bit. Take a look at the Kalman filter equations, for example.