tridiagonal: Tridiagonal matrix

Description Usage Arguments Value

Description

Generates a symmetric tridiagonal matrix with "offd" on off diagonal, "d" on the diagonal

Usage

1
tridiagonal(d, offd, n)

Arguments

d

the value on the diagonal

offd

the value along the off diagonal

n

the dimension of the matrix

Value

A, an n x n tridiagonal matrix


gdeng96/Homework2 documentation built on June 5, 2019, 11:07 p.m.