Geigen {lazy.mat} | R Documentation |
A P = B P Lambda
t(P) B P = I
.Generalized Eigen Problem of the Form
A P = B P Lambda
where t(P) B P = I
.
Geigen(A, B = diag(nrow(A)), ndim = nrow(A), check = 0)
A |
the input symmetric matrix of size |
B |
the input symmetric matrix of size |
ndim |
# of eigen values/vectors to return. |
check |
= 1 to check if |
The eigen decomposition of B^{-1/2} A B^{-1/2}
is used.
A list of
values
The ndim
largest eigen values.
vectors
The n x ndim
matrix of the eigen vectors.
tPBP
The value of t(P) B P
tPAP
The value of t(P) A P
maxad
max(abs(A P - B P Lambda))
n=5 set.seed(1701) A <- matrix(rnorm(n^2), n,n) A <- t(A)%*%A B <- matrix(rnorm(n^2), n,n) B <- t(B)%*%B Geigen(A,B, check=1)