\Header{\%*\%}{Matrix Multiplication}
\alias{$\%*\%$}{\%*\%}
\alias{matmult}{\%*\%}
\keyword{array}{\%*\%}
\keyword{arith}{\%*\%}
\begin{Usage}
\begin{verbatim}
a%*%b
\end{verbatim}
\end{Usage}
\begin{Description}
Multiplies two matrices, if they are conformable.
If one argument is a vector, it will be coerced to a either a row or column
matrix to make the two arguments conformable.
If both are vectors it will return the inner product.\end{Description}
\begin{Value}
The matrix product\end{Value}
\begin{SeeAlso}
\texttt{\Link{matrix}}, \texttt{\Link{Arithmetic}}, \texttt{\Link{diag}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
x <- 1:4
x%*%x # scalar ("inner") product
y <- diag(x)
z <- matrix(1:12,ncol=3,nrow=4)
y%*%z
y%*%x
x%*%z
\end{ExampleCode}
\end{Examples}

