swh:1:snp:1d6f9c912933e835b749aef1f8077112982fe84e
Raw File
Tip revision: 39aca747f500f69985711f7ae5e9969f93ecc860 authored by Hans W. Borchers on 21 June 2017, 07:52:27 UTC
version 2.0.7
Tip revision: 39aca74
eig.Rd
\name{eig}
\alias{eig}
\title{Eigenvalue Function (Matlab Style)}
\description{
  Eigenvalues of a matrix
}
\usage{
  eig(a)
}
\arguments{
  \item{a}{real or complex square matrix}
}
\details{
  Computes the eigenvalues of a square matrix of real or complex numbers,
  using the R routine \code{eigen} without computing the eigenvectors.
}
\value{
  Vector of eigenvalues
}
\seealso{
  \code{\link{compan}}
}
\examples{
  eig(matrix(c(1,-1,-1,1), 2, 2))   #=> 2 0
  eig(matrix(c(1,1,-1,1), 2, 2))    # complex values
  eig(matrix(c(0,1i,-1i,0), 2, 2))  # real values
}
\keyword{ array }
back to top