find_deltak {EfficientMaxEigenpair} | R Documentation |
\delta_k
Compute \delta_k
for given vector v
and matrix Q
.
find_deltak(Q, v)
Q |
The given tridiagonal matrix. |
v |
The column vector on the right hand of equation. |
A list of \delta_k
for given vector v
and matrix Q
.
a = c(1:7)^2
b = c(1:7)^2
c = rep(0, length(a) + 1)
c[length(a) + 1] = 8^2
N = length(a)
Q = tridiag(b, a, -c(b[1] + c[1], a[1:N - 1] + b[2:N] + c[2:N], a[N] + c[N + 1]))
find_deltak(Q, v=rep(1,dim(Q)[1]))