Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!zehntel!hplabs!hao!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn) Newsgroups: net.lang.c Subject: Re: A BETTER way to do Multidimensional arrays in C Message-ID: <7323@brl-tgr.ARPA> Date: Mon, 14-Jan-85 17:26:44 EST Article-I.D.: brl-tgr.7323 Posted: Mon Jan 14 17:26:44 1985 Date-Received: Mon, 21-Jan-85 03:37:35 EST References: <169@lasspvax.UUCP> Organization: Ballistic Research Lab Lines: 12 Steve's suggestion of using vectored-row matrices is a good one; indeed I think I'll include it in the matrix package in our support library. There need to be alloc/free routines (with alloc taking care of setting up the vectors) but for large matrices it would be worth it since double indirection will usually be faster than index arithmetic. This brings me to one of my oldest gripes: There are not enough standardized programming support routines in the C library. Everyone ends up inventing his own set of routines for common operations, such as complex arithmetic or queueing. There have been a few useful additions recently but there should be more.