From: tmoran@bix.com
Subject: Re: Looking for Ada Technique Name and References
Date: 2000/02/23
Date: 2000-02-23T00:00:00+00:00 [thread overview]
Message-ID: <sMGs4.12380$yt2.278632@nnrp3-w.snfc21.pbi.net> (raw)
In-Reply-To: 88uoim$8i81@news.cis.okstate.edu
>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
Transpose does not invert the array. It tells the compiler to use a
different definition of "*".
Suppose the body of the Matrix."*" routine was re-written, say to take
advantage of new vector arithmetic hardware or to fix an error.
"Transpose (E) * F" would be no faster, and no more correct, since it
actually calls a different "*" function entirely.
It looks like "Transpose" is doing something to E, but instead it's
modifying "*". Granted this seems like a useful little white lie,
but tricky code makes me uncomfortable. The usual recommendation for
tricky, but useful, code is to comment thoroughly. But compare
X := Transpose(E) * F; -- use the Transpose_Left_And_Multiply function
to
X := TLM(E, F); -- X := Transpose(E) * F;
Of course if you are trying to save the time of copying an array,
you surely will use procedures, rather than array-returning functions,
anyway.
next prev parent reply other threads:[~2000-02-23 0:00 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <88kegp$iso$1@coward.ks.cc.utah.edu>
[not found] ` <88kh6q$j4j$1@coward.ks.cc.utah.edu>
2000-02-18 0:00 ` Looking for Ada Technique Name and References Tucker Taft
2000-02-21 0:00 ` Diana Webster
2000-02-22 0:00 ` John Halleck
2000-02-22 0:00 ` tmoran
2000-02-22 0:00 ` David Starner
2000-02-23 0:00 ` tmoran [this message]
2000-02-22 0:00 ` Vladimir Olensky
2000-02-22 0:00 ` John Halleck
2000-02-23 0:00 ` Nick Roberts
2000-02-22 0:00 ` Jon S Anthony
2000-02-28 0:00 ` Charles D. Hixson
2000-02-28 0:00 ` Jon S Anthony
2000-02-29 0:00 ` Charles Hixson
2000-02-29 0:00 ` Brian Rogoff
2000-02-29 0:00 ` Jon S Anthony
2000-02-29 0:00 ` Brian Rogoff
2000-02-29 0:00 ` Jon S Anthony
2000-03-01 0:00 ` Charles Hixson
2000-03-01 0:00 ` Brian Rogoff
2000-03-01 0:00 ` Jon S Anthony
2000-03-04 0:00 ` Nick Roberts
2000-02-29 0:00 ` Wes Groleau
2000-02-29 0:00 ` Gautier
2000-03-01 0:00 ` Wes Groleau
2000-02-22 0:00 ` Gautier
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox