FTQuant
0.1
|
Contains the definition of the Black-Sholes model. More...
#include <vector>
#include <functional>
Go to the source code of this file.
Classes | |
class | BlackScholes |
Implements the Black-Scholes model. More... | |
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... | |
Contains the definition of the Black-Sholes model.
The Black-Sholes model is a mathematical model used to model the price of various assets. The model assumes that the price of heavily traded assets follow a geometric Brownian motion with constant drift and volatility. When applied to a stock option, the model incorporates the constant price variation of the stock, the time value of money, the option's strike price and the time to the option's expiry.
Definition in file BlackSholes.hpp.
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
a,b,c,f | matrix coefficients in the run-through method |
v | the 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().