1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dotprod.R
\name{dot}
\alias{dot}
\title{Compute the dot product of two vectors}
\usage{
dot(x, y, d = NULL)
}
\arguments{
\item{x}{Matrix of vectors}
\item{y}{Matrix of vectors}
\item{d}{Dimension along which to calculate the dot product}
}
\value{
Vector with length of \code{d}th dimension
}
\description{
If \code{x} and \code{y} are matrices, calculate the dot-product
along the first non-singleton dimension. If the optional argument
\code{d} is given, calculate the dot-product along this
dimension.
}
\author{
David Sterratt
}
\keyword{arith}
\keyword{array}
\keyword{math}
|