From p.dalgaard at biostat.ku.dk  Tue Jan  4 13:35:31 2005
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Tue Jan  4 13:37:27 2005
Subject: [Rd] row ("FORTRAN") order?
In-Reply-To: <x2fz1i46uw.fsf@biostat.ku.dk>
References: <20050103155029.GA9568@tal.stat.umu.se>
	<x2fz1i46uw.fsf@biostat.ku.dk>
Message-ID: <x2zmzpz818.fsf@biostat.ku.dk>

Peter Dalgaard <p.dalgaard@biostat.ku.dk> writes:

> G?ran Brostr?m <gb@tal.stat.umu.se> writes:
> 
> > Reading about 'R_max_col' in  "Writing R extensions", Version
> > 2.1.0,(2005-01-03), I find:
> > 
> > "Given the nr by nc matrix matrix in row ("FORTRAN") order, ..."
> > 
> > Looks like a contradiction to me, since FORTRAN stores matrices
> > columnwise. So is this a documentation bug?
> 
> Hmmmm. Maybe. FORTRAN order is known as column-*major* order. The row
> index varies most quickly, so the question is whether "row order" may
> have have some merit. Anyone have the terminology straight?

Gordon Smyth didn't think "row order" made sense either, so I've
changed "row" to "column-major" for r-devel.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907


[Rd] row ("FORTRAN") order?
Peter Dalgaard