24#ifndef quantlib_fdm_spread_payoff_inner_value_hpp
25#define quantlib_fdm_spread_payoff_inner_value_hpp
36 ext::shared_ptr<FdmInnerValueCalculator> calc1,
37 ext::shared_ptr<FdmInnerValueCalculator> calc2)
42 a[0] =
calc1_->innerValue(iter,
t);
43 a[1] =
calc2_->innerValue(iter,
t);
52 const ext::shared_ptr<BasketPayoff>
payoff_;
53 const ext::shared_ptr<FdmInnerValueCalculator>
calc1_;
54 const ext::shared_ptr<FdmInnerValueCalculator>
calc2_;
Basket option on a number of assets.
1-D array used in linear algebra.
Real innerValue(const FdmLinearOpIterator &iter, Time t) override
const ext::shared_ptr< BasketPayoff > payoff_
const ext::shared_ptr< FdmInnerValueCalculator > calc1_
Real avgInnerValue(const FdmLinearOpIterator &iter, Time t) override
const ext::shared_ptr< FdmInnerValueCalculator > calc2_
FdmSpreadPayoffInnerValue(ext::shared_ptr< BasketPayoff > payoff, ext::shared_ptr< FdmInnerValueCalculator > calc1, ext::shared_ptr< FdmInnerValueCalculator > calc2)
layer of abstraction to calculate the inner value
Real Time
continuous quantity with 1-year units
ext::shared_ptr< QuantLib::Payoff > payoff