find_deltak {EfficientMaxEigenpair} | R Documentation |
Compute \delta_k
Description
Compute \delta_k
for given vector v
and matrix Q
.
Usage
find_deltak(Q, v)
Arguments
Q |
The given tridiagonal matrix. |
v |
The column vector on the right hand of equation. |
Value
A list of \delta_k
for given vector v
and matrix Q
.
Examples
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]))
[Package EfficientMaxEigenpair version 0.1.4 Index]