[Rd] row ("FORTRAN") order?

Peter Dalgaard p.dalgaard at biostat.ku.dk
Tue Jan 4 13:35:31 CET 2005


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

> Göran Broström <gb at 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 at biostat.ku.dk)             FAX: (+45) 35327907



More information about the R-devel mailing list