Reference

Table of Contents  ▸  List of Commands  ▸  Matrix Computation  ▸  trisolve◀  transpose    |    add3d  ▶

trisolve

Built-in command

Arguments:

Description:

Solve tridiagonal system AX = B for selected B-vectors and specified tridiagonal A-matrix.

Tridiagonal matrix must be stored as a 3 column vector, where 2nd column contains the
diagonal coefficients, while 1st and 3rd columns contain the left and right coefficients.

Example of use:

$ gmic (0,0,1;1,0,0;0,1,0) (1;2;3) +trisolve[-1] [-2]

Command: (0,0,1;1,0,0;0,1,0) (1;2;3) +trisolve[-1] [-2]
Command: (0,0,1;1,0,0;0,1,0) (1;2;3) +trisolve[-1] [-2]
Command: (0,0,1;1,0,0;0,1,0) (1;2;3) +trisolve[-1] [-2]