File: dot.Rd

package info (click to toggle)
r-cran-geometry 0.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,964 kB
  • sloc: ansic: 20,610; cpp: 328; xml: 203; sh: 13; makefile: 5
file content (30 lines) | stat: -rw-r--r-- 662 bytes parent folder | download | duplicates (3)
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}