eigen

From DavinciWiki
Jump to: navigation, search


Description

Computes the Eigen values and Eigen vectors of a real symmetric input matrix

Arguments and Return Values

Arguments: A numeric array

Return Value: A numeric array contain Eigen values and vectors of input

Usage

Syntax: eigen(obj = VAL [, niter = INT])

The eigen() function computes the Eigen Values and Vectors for a real symmetric [m x m x 1] matrix passed in as the 'obj' parameter.

The 'niter' parameter specifies the maximum number of iterations allowed during Tridiagonal QL algorithm. If pcs() fails due to 'no convergence' error, try increasing this number.

Assume that 'a' is a [3x3x1] matrix, then the following line will compute the Eigen Values and Eigen vectors of matrix 'a'.

The return value 'e' is a [4x3x1] matrix, with the first column containing the Eigen Values and the next three columns containing the Eigen Vectors.

Examples

dv> a
3x3x1 array of float, bsq format [36 bytes]
0.558329        0.100168        0.899324
0.805147        0.930234        0.535199
0.938504        0.0242239       0.597536

dv> e = eigen(a)
4x3x1 array of float, bsq format [48 bytes]
1.91455         0.669851        0.134651        -0.730184
0.761486        0.559922        -0.737468       0.377663
-0.589938       0.487634        0.661824        0.569387

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 05-15-2007

Personal tools