QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
FdmG2Op Class Reference

#include <fdmg2op.hpp>

+ Inheritance diagram for FdmG2Op:
+ Collaboration diagram for FdmG2Op:

Public Member Functions

 FdmG2Op (const ext::shared_ptr< FdmMesher > &mesher, const ext::shared_ptr< G2 > &model, Size direction1, Size direction2)
 
Size size () const override
 
void setTime (Time t1, Time t2) override
 Time \(t1 <= t2\) is required. More...
 
Array apply (const Array &r) const override
 
Array apply_mixed (const Array &r) const override
 
Array apply_direction (Size direction, const Array &r) const override
 
Array solve_splitting (Size direction, const Array &r, Real s) const override
 
Array preconditioner (const Array &r, Real s) const override
 
std::vector< SparseMatrixtoMatrixDecomp () const override
 
- Public Member Functions inherited from FdmLinearOpComposite
virtual Size size () const =0
 
virtual void setTime (Time t1, Time t2)=0
 Time \(t1 <= t2\) is required. More...
 
virtual Array apply_mixed (const Array &r) const =0
 
virtual Array apply_direction (Size direction, const Array &r) const =0
 
virtual Array solve_splitting (Size direction, const Array &r, Real s) const =0
 
virtual Array preconditioner (const Array &r, Real s) const =0
 
virtual std::vector< SparseMatrixtoMatrixDecomp () const
 
SparseMatrix toMatrix () const override
 
- Public Member Functions inherited from FdmLinearOp
virtual ~FdmLinearOp ()=default
 
virtual array_type apply (const array_type &r) const =0
 
virtual SparseMatrix toMatrix () const =0
 

Private Attributes

const Size direction1_
 
const Size direction2_
 
const Array x_
 
const Array y_
 
const TripleBandLinearOp dxMap_
 
const TripleBandLinearOp dyMap_
 
NinePointLinearOp corrMap_
 
TripleBandLinearOp mapX_
 
TripleBandLinearOp mapY_
 
const ext::shared_ptr< G2model_
 

Additional Inherited Members

- Public Types inherited from FdmLinearOp
typedef Array array_type
 

Detailed Description

Definition at line 36 of file fdmg2op.hpp.

Constructor & Destructor Documentation

◆ FdmG2Op()

FdmG2Op ( const ext::shared_ptr< FdmMesher > &  mesher,
const ext::shared_ptr< G2 > &  model,
Size  direction1,
Size  direction2 
)

Definition at line 34 of file fdmg2op.cpp.

Member Function Documentation

◆ size()

Size size ( ) const
overridevirtual

Implements FdmLinearOpComposite.

Definition at line 58 of file fdmg2op.cpp.

◆ setTime()

void setTime ( Time  t1,
Time  t2 
)
overridevirtual

Time \(t1 <= t2\) is required.

Implements FdmLinearOpComposite.

Definition at line 60 of file fdmg2op.cpp.

+ Here is the call graph for this function:

◆ apply()

Array apply ( const Array r) const
overridevirtual

Implements FdmLinearOp.

Definition at line 73 of file fdmg2op.cpp.

+ Here is the call graph for this function:

◆ apply_mixed()

Array apply_mixed ( const Array r) const
overridevirtual

Implements FdmLinearOpComposite.

Definition at line 77 of file fdmg2op.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ apply_direction()

Array apply_direction ( Size  direction,
const Array r 
) const
overridevirtual

Implements FdmLinearOpComposite.

Definition at line 81 of file fdmg2op.cpp.

+ Here is the call graph for this function:

◆ solve_splitting()

Array solve_splitting ( Size  direction,
const Array r,
Real  s 
) const
overridevirtual

Implements FdmLinearOpComposite.

Definition at line 93 of file fdmg2op.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ preconditioner()

Array preconditioner ( const Array r,
Real  s 
) const
overridevirtual

Implements FdmLinearOpComposite.

Definition at line 105 of file fdmg2op.cpp.

+ Here is the call graph for this function:

◆ toMatrixDecomp()

std::vector< SparseMatrix > toMatrixDecomp ( ) const
overridevirtual

Reimplemented from FdmLinearOpComposite.

Definition at line 109 of file fdmg2op.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ direction1_

const Size direction1_
private

Definition at line 56 of file fdmg2op.hpp.

◆ direction2_

const Size direction2_
private

Definition at line 56 of file fdmg2op.hpp.

◆ x_

const Array x_
private

Definition at line 57 of file fdmg2op.hpp.

◆ y_

const Array y_
private

Definition at line 57 of file fdmg2op.hpp.

◆ dxMap_

const TripleBandLinearOp dxMap_
private

Definition at line 58 of file fdmg2op.hpp.

◆ dyMap_

const TripleBandLinearOp dyMap_
private

Definition at line 58 of file fdmg2op.hpp.

◆ corrMap_

NinePointLinearOp corrMap_
private

Definition at line 60 of file fdmg2op.hpp.

◆ mapX_

TripleBandLinearOp mapX_
private

Definition at line 61 of file fdmg2op.hpp.

◆ mapY_

TripleBandLinearOp mapY_
private

Definition at line 61 of file fdmg2op.hpp.

◆ model_

const ext::shared_ptr<G2> model_
private

Definition at line 63 of file fdmg2op.hpp.