matrix multiply

Robert Gentleman
Mon, 12 Jan 1998 12:58:57 +1300 (NZDT)

A long time ago thomas noted:

TASK:   Matrix multiply problems
FROM:   <>
        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".
r-devel mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: