26ModelCG::ModelCG(
const QuantLib::Size n) : n_(n) {
g_ = QuantLib::ext::make_shared<QuantExt::ComputationGraph>(); }
28std::size_t
ModelCG::dt(
const Date& d1,
const Date& d2)
const {
29 return cg_const(*
g_, QuantLib::ActualActual(QuantLib::ActualActual::ISDA).yearFraction(d1, d2));
QuantLib::ext::shared_ptr< QuantExt::ComputationGraph > g_
virtual std::size_t dt(const Date &d1, const Date &d2) const
ModelCG(const QuantLib::Size n)
interface for model against which a script can be run
std::size_t cg_const(ComputationGraph &g, const double value)
Serializable Credit Default Swap.