Path: utzoo!attcan!uunet!husc6!uwvax!rutgers!apple!malcolm From: malcolm@Apple.COM (Malcolm Slaney) Newsgroups: comp.lang.misc Subject: Re: Row/Column Major Definition and History? Summary: Why not what.... Keywords: arrays, row major, column major, history, definition Message-ID: <16651@apple.Apple.COM> Date: 6 Sep 88 04:57:31 GMT References: <16512@apple.Apple.COM> <5632@june.cs.washington.edu> Reply-To: malcolm@apple.com.UUCP (Malcolm Slaney) Organization: Apple Computer Inc, Cupertino, CA Lines: 29 pardo@uw-june.UUCP (David Keppel) writes: >Idea: Memory is just a 1-dimensional array. If we want a 2-d array, >we need to make a map from the 2-d "name" (e.g., A[2,3]) to the actual >1-d location. Row- and column-major are just slighly different ways >of doing the mapping. > Oops, I wasn't clear enough. (Thanks to all the people who sent me long detailed explanations about how 2d arrays are mapped into 1d memory.) What I want to know is where the terminology row major and column major came from. I have heard rumors that it started back in the 19th century in the linear algebra world. I am asking this because a year or two ago I designed a array package for signal processing (in Lisp) and I had to make two design decisions. The first was whether to describe two dimensional arrays using matrix notation (row, column) or graphics notation (x,y). The second was to decide whether row major or column major made more sense. I think the two decisions are independent and the choice isn't at all obvious. Every time I describe the design I have to remember which is row major and which is column major. Does anybody know where these terms came from? I don't think the guy who writes about language for the NY Times magazine section would be too interested in tracking this one down for me. Thanks. Malcolm malcolm@apple.com