QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
TR-BDF2 scheme for finite difference methods. More...
#include <trbdf2.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 Member Functions | |
TRBDF2 (const operator_type &L, const bc_set &bcs) | |
void | step (array_type &a, Time t) |
void | setStep (Time dt) |
TR-BDF2 scheme for finite difference methods.
See http://ssrn.com/abstract=1648878 for details.
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 73 of file trbdf2.hpp.
typedef OperatorTraits<Operator> traits |
Definition at line 76 of file trbdf2.hpp.
typedef traits::operator_type operator_type |
Definition at line 77 of file trbdf2.hpp.
typedef traits::array_type array_type |
Definition at line 78 of file trbdf2.hpp.
typedef traits::bc_set bc_set |
Definition at line 79 of file trbdf2.hpp.
typedef traits::condition_type condition_type |
Definition at line 80 of file trbdf2.hpp.
TRBDF2 | ( | const operator_type & | L, |
const bc_set & | bcs | ||
) |
Definition at line 82 of file trbdf2.hpp.
void step | ( | array_type & | a, |
Time | t | ||
) |
Definition at line 110 of file trbdf2.hpp.
void setStep | ( | Time | dt | ) |
Definition at line 88 of file trbdf2.hpp.
|
private |
Definition at line 98 of file trbdf2.hpp.
|
private |
Definition at line 99 of file trbdf2.hpp.
|
private |
Definition at line 99 of file trbdf2.hpp.
|
private |
Definition at line 99 of file trbdf2.hpp.
|
private |
Definition at line 100 of file trbdf2.hpp.
|
private |
Definition at line 100 of file trbdf2.hpp.
|
private |
Definition at line 100 of file trbdf2.hpp.
|
private |
Definition at line 101 of file trbdf2.hpp.
|
private |
Definition at line 102 of file trbdf2.hpp.
|
private |
Definition at line 103 of file trbdf2.hpp.