Thread View: net.lang.mod2
1 messages
1 total messages
Started by Vincent Broman
Tue, 14 Oct 1986 15:44
Re: Open Array Parameters and matrices
Author: Vincent Broman
Date: Tue, 14 Oct 1986 15:44
Date: Tue, 14 Oct 1986 15:44
16 lines
1461 bytes
1461 bytes
I don't see what is so abominably inefficient about a nice clean
indexing function on an array descriptor. That would be the Natural
Solution to this problem as well as more general ones, such as how to
store symmetric arrays in half the space, how to switch from dense
to sparse storage of a matrix, etc, etc.
The function call overhead is all the additional burden required,
since the arithmetic of index computation must be done in any case.
The only other inefficiency might be when a smart optimizing compiler
can simplify some sequential accesses to the array, but isn't smart enough
(or given opportunity) to expand an indexing function call inline
in order to optimize it.
Vincent Broman, code 632, Naval Ocean Systems Center, San Diego, CA 92152, USA
Phone: +1 619 225 2365 {seismo,caip,ihnp4,ucbvax}!\\\\\\\
Arpa: broman@bugs.nosc.mil Uucp: {floyd,moss,bang,hp-sdd,sdcsvax}!noscvax!broman
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads