FTQuant  0.1
Functions
ThomasAlgorithm.cpp File Reference
#include <BlackSholes.hpp>
#include <vector>
Include dependency graph for ThomasAlgorithm.cpp:

Go to the source code of this file.

Functions

void thomas_algorithm (std::vector< double > &v, std::vector< double > &a, std::vector< double > &b, std::vector< double > &c, std::vector< double > &f)
 Implementation of Thomas algorithm for tridiagonal matrices. More...
 

Function Documentation

◆ thomas_algorithm()

void thomas_algorithm ( std::vector< double > &  v,
std::vector< double > &  a,
std::vector< double > &  b,
std::vector< double > &  c,
std::vector< double > &  f 
)

Implementation of Thomas algorithm for tridiagonal matrices.

Thomas tridiagonal matrix algorithm

Parameters
a,b,c,fmatrix coefficients in the run-through method
vthe desired approximation of the function obtained by the run-through method. Has indexes from 1 to n

Definition at line 9 of file ThomasAlgorithm.cpp.

Referenced by BlackScholes::pde_pricer().