Rev 13984 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{crossprod}\alias{crossprod}\title{Matrix Crossproduct}\description{Given matrices \code{x} and \code{y} as arguments,\code{crossprod} returns their matrix cross-product.This is formally equivalent to, but faster than, thecall \code{t(x) \%*\% y}.}\usage{crossprod(x, y=x)}\seealso{\code{\link{\%*\%}} and outer product \code{\link{\%o\%}}.}\examples{(z <- crossprod(1:4)) # = sum(1 + 2^2 + 3^2 + 4^2)drop(z) # scalar}\keyword{algebra}\keyword{array}