QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Crank-Nicolson scheme for finite difference methods. More...
#include <cranknicolson.hpp>
Public Types | |
typedef OperatorTraits< Operator > | traits |
typedef traits::operator_type | operator_type |
typedef traits::array_type | array_type |
typedef traits::bc_set | bc_set |
typedef traits::condition_type | condition_type |
Public Types inherited from MixedScheme< Operator > | |
typedef OperatorTraits< Operator > | traits |
typedef traits::operator_type | operator_type |
typedef traits::array_type | array_type |
typedef traits::bc_set | bc_set |
typedef traits::condition_type | condition_type |
Public Member Functions | |
CrankNicolson (const operator_type &L, const bc_set &bcs) | |
Public Member Functions inherited from MixedScheme< Operator > | |
MixedScheme (const operator_type &L, Real theta, bc_set bcs) | |
void | step (array_type &a, Time t) |
void | setStep (Time dt) |
Additional Inherited Members | |
Protected Attributes inherited from MixedScheme< Operator > | |
operator_type | L_ |
operator_type | I_ |
operator_type | explicitPart_ |
operator_type | implicitPart_ |
Time | dt_ |
Real | theta_ |
bc_set | bcs_ |
Crank-Nicolson scheme for finite difference methods.
In this implementation, the passed operator must be derived from either TimeConstantOperator or TimeDependentOperator. Also, it must implement at least the following interface:
Definition at line 67 of file cranknicolson.hpp.
typedef OperatorTraits<Operator> traits |
Definition at line 70 of file cranknicolson.hpp.
typedef traits::operator_type operator_type |
Definition at line 71 of file cranknicolson.hpp.
typedef traits::array_type array_type |
Definition at line 72 of file cranknicolson.hpp.
typedef traits::bc_set bc_set |
Definition at line 73 of file cranknicolson.hpp.
typedef traits::condition_type condition_type |
Definition at line 74 of file cranknicolson.hpp.
CrankNicolson | ( | const operator_type & | L, |
const bc_set & | bcs | ||
) |
Definition at line 76 of file cranknicolson.hpp.