matrix multiply

Robert Gentleman rgentlem@stat.auckland.ac.nz
Mon, 12 Jan 1998 12:58:57 +1300 (NZDT)


A long time ago thomas noted:

----------------------------------------------------------------------
TASK:   Matrix multiply problems
STATUS: Open
FROM:   <thomas@biostat.washington.edu>
        Both of these used to work and seem useful and harmless (and work in S):
        R> matrix(1,ncol=1)%*%c(1,2)
        Error in matrix(1, ncol = 1) %*% c(1, 2) : non-conformable arguments
        R> matrix(1,ncol=1)*(1:2)
        Error: dim<- length of dims do not match the length of object

----------------------------------------------------------------------

 I have fixed both of these. In the second case all binary ops now
 behave in this manner. In the first case only %*% has been "fixed".
 
 
 robert
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._