| schur | R Documentation |
schur computes the Schur decomposition of an n \times n real matrix
\bold{A}.
schur(x, vectors = TRUE)
x |
a square numeric matrix to be decomposed. |
vectors |
logical, if |
For an n \times n real matrix \bold{A}, the Schur decomposition
is given by,
\bold{A} = \bold{QMQ}^T
where \bold{Q} is an orthogonal matrix and \bold{M} is a quasi-upper triangular
matrix. The column vectors \bold{Q} (if requested) are the Schur vectors of
\bold{A}, and \bold{M} is the Schur form of \bold{A}.
Unsuccessful results from the underlying LAPACK code will result in an error giving
a error code: these can only be interpreted by detailed study of the Fortran code.
The Schur decomposition of the matrix as computed by LAPACK. The components in
the returned value correspond directly to the values returned by DGEES.
m |
a matrix with the same dimensions as |
values |
a vector containing the |
vectors |
an |
Anderson. E., Bai, Z., Bischof, C., Blackford, S., Demmel, J., Dongarra, J., Du Croz, J., Greenbaum, A., Hammarling, S., McKenney, A. Sorensen, D. (1999). LAPACK Users' Guide, 3rd Edition. SIAM.
Golub, G.H., Van Loan, C.F. (1996). Matrix Computations, 3rd Edition. John Hopkins University Press.
a <- matrix(c(7,12,-2,-3), ncol = 2)
z <- schur(a)
z # information of Schur decomposition
x <- matrix(c(0,0,1,2,1,0,2,2,1), ncol = 3)
z <- schur(x)
z # complex eigenvalues
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.