tridiag_inv_general {ICSsmoothing}R Documentation

Construct inverse of a general tridiagonal matrix.

Description

tridiag_inv_general constructs inverse of a general tridiagonal matrix T of order n, using Usmani's theorem.

Usage

tridiag_inv_general(T, n)

Arguments

T

a tridiagonal matrix.

n

an order of given tridiagonal matrix.

Value

The inverse of matrix T.

Examples

tridiag_inv_general(matrix(c(1, 4, 0, -9), 2, 2), 2)
tridiag_inv_general(matrix(c(1, 3, 5, -2, 0, 8, 7, 6, 6), 3, 3), 3)

[Package ICSsmoothing version 1.2.8 Index]