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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fded8d14c74b14e5 X-Google-Attributes: gid103376,public From: dvdeug@x8b4e53cd.dhcp.okstate.edu (David Starner) Subject: Re: Looking for Ada Technique Name and References Date: 2000/02/22 Message-ID: <88uoim$8i81@news.cis.okstate.edu>#1/1 X-Deja-AN: 588552947 References: <88svc0$nkj$1@coward.ks.cc.utah.edu> Organization: Oklahoma State University User-Agent: slrn/0.9.6.2 (Linux) Reply-To: dstarner98@aasaa.ofe.org Newsgroups: comp.lang.ada Date: 2000-02-22T00:00:00+00:00 List-Id: On Tue, 22 Feb 2000 08:05:50 GMT, tmoran@bix.com wrote: >> type Transpose is new Matrix; >> D := Transpose (E) * F; -- D gets the result of multiplying E'F > Perhaps there's a term for it among magicians. You get the audience's >attention focused on what you seem to be doing to E, and they don't >notice that you're actually doing something to '*' instead. Is this >for an obfuscated code contest? Why is this obfuscated? It does Transpose (E) * F. The * operator does multiplication. Transpose does invert the array, it just does so by redefining it instead of moving stuff around in memory. It's not the clearest thing in the world, but it's entirely reasonable, especially for the optimization done. -- David Starner - dstarner98@aasaa.ofe.org Only a nerd would worry about wrong parentheses with square brackets. But that's what mathematicians are. -- Dr. Burchard, math professor at OSU