43 const std::vector<std::pair<std::string, std::string>>& additionalResults,
44 const QuantLib::ext::shared_ptr<ModelCG>& model,
const ASTNodePtr ast,
45 const QuantLib::ext::shared_ptr<Context>& context,
47 const bool interactive =
false,
const bool generateAdditionalResults =
false,
48 const bool includePastCashflows =
false,
const bool useCachedSensis =
false,
49 const bool useExternalComputeFramework =
false,
50 const bool useDoublePrecisionForExternalCalculation =
false);
86 mutable std::vector<RandomVariableOp>
ops_;
87 mutable std::vector<RandomVariableGrad>
grads_;
105 const QuantLib::ext::shared_ptr<ModelCG>
model_;
abstract syntax tree for payoff scripting
QuantLib::GenericEngine< arguments, results > engine
std::vector< double * > externalOutputPtr_
const bool useDoublePrecisionForExternalCalculation_
bool lastCalculationWasValid() const
std::vector< ExternalRandomVariableGrad > gradsExternal_
void buildComputationGraph() const
std::vector< ComputationGraphBuilder::PayLogEntry > payLogEntries_
std::vector< double > sensis_
const QuantLib::ext::shared_ptr< Context > context_
const std::string script_
void calculate() const override
std::vector< std::pair< std::size_t, double > > baseModelParams_
const bool useExternalComputeFramework_
std::vector< RandomVariableOpNodeRequirements > opNodeRequirements_
std::vector< std::vector< double > > externalOutput_
std::vector< RandomVariableOp > ops_
const std::string & npvName() const
QuantLib::ext::shared_ptr< Context > workingContext_
const std::vector< std::pair< std::string, std::string > > additionalResults_
std::map< std::string, boost::any > instrumentAdditionalResults_
const bool generateAdditionalResults_
const bool useCachedSensis_
std::vector< ExternalRandomVariableOp > opsExternal_
std::set< std::size_t > keepNodes_
~ScriptedInstrumentPricingEngineCG()
std::vector< RandomVariableGrad > grads_
const Model::McParams mcParams_
bool lastCalculationWasValid_
const QuantLib::ext::shared_ptr< ModelCG > model_
const bool includePastCashflows_
std::size_t externalCalculationId_
computation graph builder
script engine context holding variable names and values
Currency and instrument specific conventions/defaults.
interface for model against which a script can be run
interface for model against which a script can be run
QuantLib::ext::shared_ptr< ASTNode > ASTNodePtr
Serializable Credit Default Swap.
repository for cashflows generated by the PAYLOG() function