find_deltak: Compute delta_k

Description Usage Arguments Value Examples

Description

Compute δ_k for given vector v and matrix Q.

Usage

1

Arguments

Q

The given tridiagonal matrix.

v

The column vector on the right hand of equation.

Value

A list of δ_k for given vector v and matrix Q.

Examples

1
2
3
4
5
6
7
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]))

EfficientMaxEigenpair documentation built on May 2, 2019, 2:17 a.m.