| Library: | math |
| Quantlet: | eiscg | |
| Description: | Computes the eigenvalues and eigenvectors of a complex general matrix |
| Usage: | {wr, wi, zr, zi} = eiscg(ar{, ai}) | |
| Input: | ||
| ar | n x m matrix | |
| ai | n x m matrix | |
| Output: | ||
| wr | n x 1 vector of real eigenvalues | |
| wi | n x 1 vector of imaginary eigenvalues | |
| zr | n x m matrix of real eigenvectors | |
| zi | m x m matrix of imaginary eigenvectors | |
library("math")
ar = #(3, 1)~#(-10, 9)
ai = #(2, 1)~#(1, 1)
{wr, wi, zr, zi} = eiscg(ar, ai)
wr
wi
zr
zi
Contents of wr [1,] 3.7685 [2,] 8.2315 Contents of wi [1,] 4.1888 [2,] -1.1888 Contents of zr [1,] -5.2597 -0.75934 [2,] -0.06684 0.083265 Contents of zi [1,] -1.5739 1.2656 [2,] 1.2655 -0.8959
| Library: | math |