https://github.com/cran/pracma
Revision 26e049d70b4a1c237987e260cba68f6a9413736c authored by Hans W. Borchers on 09 April 2019, 04:10:07 UTC, committed by cran-robot on 09 April 2019, 04:10:07 UTC
1 parent bf07673
Tip revision: 26e049d70b4a1c237987e260cba68f6a9413736c authored by Hans W. Borchers on 09 April 2019, 04:10:07 UTC
version 2.2.5
version 2.2.5
Tip revision: 26e049d
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 }
Computing file changes ...