## Tridiagonal Matrix Algorithm (Thomas Alg.) (tridiagonal)

versión 5.1.0 (246 KB) por
Solves the tridiagonal linear system Ax=d for x using the tridiagonal matrix algorithm (i.e. the Thomas algorithm).

392 descargas

De GitHub

# tridiagonal

Solves the tridiagonal linear system for using the tridiagonal matrix algorithm (i.e. the Thomas algorithm).

## Syntax

x = tridiagonal(A,d)

## Description

x = tridiagonal(A,d) solves the tridiagonal linear system for , where is a tridiagonal matrix and .

## Tridiagonal Matrix Convention

For this implementation, I use the following convention for denoting the elements of the tridiagonal matrix :

Most other references have 's ranging from to both in the definition of the tridiagonal matrix and in the algorithm used to solve the corresponding linear system. In this implementation, I have the 's ranging from to ; this makes the algorithm slightly more straightforward to implement.

### Citar como

Tamas Kis (2022). Tridiagonal Matrix Algorithm (Thomas Alg.) (tridiagonal) (https://github.com/tamaskis/tridiagonal-MATLAB/releases/tag/v5.1.0), GitHub. Recuperado .

##### Compatibilidad con la versión de MATLAB
Se creó con R2021a
Compatible con cualquier versión