\Header{crossprod}{Matrix Crossproduct}
\keyword{algebra}{crossprod}
\keyword{array}{crossprod}
\begin{Description}\relax
Given matrices \code{x} and \code{y} as arguments,
\code{crossprod} returns their matrix cross-product.
This is formally equivalent to, but faster than, the
call \code{t(x) \%*\% y}.\end{Description}
\begin{Usage}
\begin{verbatim}
crossprod(x, y=x)
\end{verbatim}
\end{Usage}
\begin{SeeAlso}\relax
\code{\Link{\%*\%}} and outer product \code{\Link{\%o\%}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
crossprod(1:4)    # = sum(1 + 2^2 + 3^2 + 4^2)
drop(.Last.value) # scalarized
\end{ExampleCode}
\end{Examples}

