tridiag: Tridiagonal matrix

Description Usage Arguments Value Examples

Description

Generate tridiagonal matrix Q based on three input vectors.

Usage

1
tridiag(upper, lower, main)

Arguments

upper

The upper diagonal vector.

lower

The lower diagonal vector.

main

The main diagonal vector.

Value

A tridiagonal matrix is returned.

Examples

1
2
3
4
a = c(1:7)^2
b = c(1:7)^2
c = -c(1:8)^2
tridiag(b, a, c)

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