24#ifndef quantlib_fd_cir_vanilla_engine_hpp
25#define quantlib_fd_cir_vanilla_engine_hpp
37 class FdmQuantoHelper;
47 ext::shared_ptr<GeneralizedBlackScholesProcess> bsProcess,
54 ext::shared_ptr<FdmQuantoHelper> quantoHelper = {});
57 ext::shared_ptr<GeneralizedBlackScholesProcess> bsProcess,
65 ext::shared_ptr<FdmQuantoHelper> quantoHelper = {});
72 ext::shared_ptr<GeneralizedBlackScholesProcess>
bsProcess_;
84 ext::shared_ptr<GeneralizedBlackScholesProcess> bsProcess,
88 const ext::shared_ptr<FdmQuantoHelper>& quantoHelper);
100 const std::vector<Date>& dividendDates,
101 const std::vector<Real>& dividendAmounts);
103 operator ext::shared_ptr<PricingEngine>()
const;
Finite-differences CIR vanilla option engine.
FdmSolverDesc getSolverDesc(Real equityScaleFactor) const
ext::shared_ptr< GeneralizedBlackScholesProcess > bsProcess_
void calculate() const override
ext::shared_ptr< CoxIngersollRossProcess > cirProcess_
DividendSchedule dividends_
ext::shared_ptr< FdmQuantoHelper > quantoHelper_
const FdmSchemeDesc schemeDesc_
MakeFdCIRVanillaEngine & withTGrid(Size tGrid)
MakeFdCIRVanillaEngine & withQuantoHelper(const ext::shared_ptr< FdmQuantoHelper > &quantoHelper)
MakeFdCIRVanillaEngine & withCashDividends(const std::vector< Date > ÷ndDates, const std::vector< Real > ÷ndAmounts)
MakeFdCIRVanillaEngine & withRGrid(Size rGrid)
MakeFdCIRVanillaEngine & withFdmSchemeDesc(const FdmSchemeDesc &schemeDesc)
ext::shared_ptr< GeneralizedBlackScholesProcess > bsProcess_
MakeFdCIRVanillaEngine & withXGrid(Size xGrid)
MakeFdCIRVanillaEngine & withDampingSteps(Size dampingSteps)
ext::shared_ptr< CoxIngersollRossProcess > cirProcess_
DividendSchedule dividends_
ext::shared_ptr< FdmQuantoHelper > quantoHelper_
ext::shared_ptr< FdmSchemeDesc > schemeDesc_
CoxIngersollRoss process.
Generic option engine based on a model.
std::size_t Size
size of a container
Heston model for the stochastic volatility of an asset.
Local volatility term structure base class.
std::vector< ext::shared_ptr< Dividend > > DividendSchedule
static FdmSchemeDesc ModifiedHundsdorfer()
Vanilla option on a single asset.