32 const Date& referenceDate,
33 const Date& modelReferenceDate,
34 ext::shared_ptr<AffineModel> model)
36 t_(dayCounter.yearFraction(modelReferenceDate, referenceDate)), model_(
std::move(model)) {
1-D array used in linear algebra.
static Date maxDate()
latest allowed date
const ext::shared_ptr< AffineModel > model_
DiscountFactor discountImpl(Time) const override
discount factor calculation
Date maxDate() const override
the latest date for which the curve can return values
FdmAffineModelTermStructure(Array r, const Calendar &cal, const DayCounter &dayCounter, const Date &referenceDate, const Date &modelReferenceDate, ext::shared_ptr< AffineModel > model)
void setVariable(const Array &r)
std::pair< iterator, bool > registerWith(const ext::shared_ptr< Observable > &)
Interest-rate term structure.
Real Time
continuous quantity with 1-year units
Real DiscountFactor
discount factor between dates
Abstract interest rate model class.
ext::shared_ptr< YieldTermStructure > r