[Rd] zero-extent matrices (PR#958)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
30 May 2001 21:31:45 +0200


tlumley@u.washington.edu writes:

> In 1.2.3
>   matrix(nrow=10,ncol=0)%*%numeric(0)
> returns a 10x1 matrix of 0s
> 
> In todays 1.3 it returns a 10x1 matrix of miscellaneous junk.
> 
> While both are probably wrong the latter is causing problems for survival.

Acutally, I'd say that the 1.2.3 version is correct (sums over empty
sets being zero is a standard convention).

Hmm, 1.3.0 as of yesterday gives 10 zeros for me as does the one
updated and compiled about 18:00 CET...
-- 
   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
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._