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

#include <expliciteulerscheme.hpp>

+ Collaboration diagram for ExplicitEulerScheme:

Public Types

typedef OperatorTraits< FdmLinearOptraits
 
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

 ExplicitEulerScheme (ext::shared_ptr< FdmLinearOpComposite > map, const bc_set &bcSet=bc_set())
 
void step (array_type &a, Time t)
 
void setStep (Time dt)
 

Protected Member Functions

void step (array_type &a, Time t, Real theta)
 

Protected Attributes

Time dt_
 
const ext::shared_ptr< FdmLinearOpCompositemap_
 
const BoundaryConditionSchemeHelper bcSet_
 

Friends

class CrankNicolsonScheme
 

Detailed Description

Definition at line 35 of file expliciteulerscheme.hpp.

Member Typedef Documentation

◆ traits

Definition at line 38 of file expliciteulerscheme.hpp.

◆ operator_type

Definition at line 39 of file expliciteulerscheme.hpp.

◆ array_type

Definition at line 40 of file expliciteulerscheme.hpp.

◆ bc_set

Definition at line 41 of file expliciteulerscheme.hpp.

◆ condition_type

Definition at line 42 of file expliciteulerscheme.hpp.

Constructor & Destructor Documentation

◆ ExplicitEulerScheme()

ExplicitEulerScheme ( ext::shared_ptr< FdmLinearOpComposite map,
const bc_set bcSet = bc_set() 
)
explicit

Definition at line 26 of file expliciteulerscheme.cpp.

Member Function Documentation

◆ step() [1/2]

void step ( array_type a,
Time  t 
)

Definition at line 30 of file expliciteulerscheme.cpp.

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

◆ setStep()

void setStep ( Time  dt)

Definition at line 44 of file expliciteulerscheme.cpp.

◆ step() [2/2]

void step ( array_type a,
Time  t,
Real  theta 
)
protected

Definition at line 34 of file expliciteulerscheme.cpp.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ CrankNicolsonScheme

friend class CrankNicolsonScheme
friend

Definition at line 52 of file expliciteulerscheme.hpp.

Member Data Documentation

◆ dt_

Time dt_
protected

Definition at line 55 of file expliciteulerscheme.hpp.

◆ map_

const ext::shared_ptr<FdmLinearOpComposite> map_
protected

Definition at line 56 of file expliciteulerscheme.hpp.

◆ bcSet_

const BoundaryConditionSchemeHelper bcSet_
protected

Definition at line 57 of file expliciteulerscheme.hpp.