File: tr.Rd

package info (click to toggle)
r-cran-lava 1.8.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,816 kB
  • sloc: sh: 13; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (4)
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
31
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tr.R
\name{tr}
\alias{tr}
\title{Trace operator}
\usage{
tr(x, ...)
}
\arguments{
\item{x}{Square numeric matrix}

\item{\dots}{Additional arguments to lower level functions}
}
\value{
\code{numeric}
}
\description{
Calculates the trace of a square matrix.
}
\examples{

tr(diag(1:5))
}
\seealso{
\code{\link{crossprod}}, \code{\link{tcrossprod}}
}
\author{
Klaus K. Holst
}
\keyword{algebra}
\keyword{math}