R-alpha: Bug in crossprod

Arne Kovac (A.Kovac@Bristol.ac.uk)
Sun, 23 Mar 1997 18:20:46 +0000 (GMT)


Date: Sun, 23 Mar 1997 18:20:46 +0000 (GMT)
From: Arne Kovac <A.Kovac@Bristol.ac.uk>
To: r-testers@stat.math.ethz.ch
Subject: R-alpha: Bug in crossprod

There seems to be an error in crossprod. Linux gives the following output:

> A<-matrix(rep(0,23*51),ncol=23)
> B<-matrix(rep(0,23*51),ncol=23)
> crossprod(A,B)
Error in NULL : negative length vectors are not allowed

The replacement t(A)%*%B works of course. 

   _________
  /
\/  A r n e


-- 
Arne Kovac
School of Mathematics                    Phone: +44 (0117) 942 7551
University of Bristol                    A.Kovac@bristol.ac.uk    
University Walk, Bristol, BS8 1TW, U.K.  http://www.stats.bris.ac.uk/~maak


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers 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-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-